Commit 7433b329 by 霍志良

feat:判断null指针

parent 5481bdd5
...@@ -49,12 +49,14 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase { ...@@ -49,12 +49,14 @@ 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()!=null){
if (itemBeans.get(j).getOther().trim().length()>0){ if (itemBeans.get(j).getOther().trim().length()>0){
others= itemBeans.get(j).getOther(); others= itemBeans.get(j).getOther();
isContainsOther=true; isContainsOther=true;
break; break;
} }
} }
}
for (int i=0;i<itemBeans.size();i++){ for (int i=0;i<itemBeans.size();i++){
if (isContainsOther){ if (isContainsOther){
sb.append("#"+itemBeans.get(i).getName()+" "); sb.append("#"+itemBeans.get(i).getName()+" ");
......
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