Commit 7433b329 by 霍志良

feat:判断null指针

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