Commit 7433b329 by 霍志良

feat:判断null指针

parent 5481bdd5
...@@ -49,10 +49,12 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase { ...@@ -49,10 +49,12 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
itemBeans=customattachLingxiAnswerQuestion.answers; itemBeans=customattachLingxiAnswerQuestion.answers;
sb=new StringBuffer(); sb=new StringBuffer();
for (int j=0;j<itemBeans.size();j++){ for (int j=0;j<itemBeans.size();j++){
if (itemBeans.get(j).getOther().trim().length()>0){ if (itemBeans.get(j).getOther()!=null){
others= itemBeans.get(j).getOther(); if (itemBeans.get(j).getOther().trim().length()>0){
isContainsOther=true; others= itemBeans.get(j).getOther();
break; isContainsOther=true;
break;
}
} }
} }
for (int i=0;i<itemBeans.size();i++){ for (int i=0;i<itemBeans.size();i++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment