Commit 1fc5dc7f by 周晓航

历史bug NPE修复

parent bbb54456
...@@ -2036,7 +2036,7 @@ public class OrderAdapter { ...@@ -2036,7 +2036,7 @@ public class OrderAdapter {
String attr = ""; String attr = "";
String attrEng = ""; String attrEng = "";
for (OrderSpecialExtraAttrRequest special : extInfo.getSpecialAttrs()) { for (OrderSpecialExtraAttrRequest special : extInfo.getSpecialAttrs()) {
if (special.getAttributeName().indexOf("冰") >= 0) { if (Objects.nonNull(special.getAttributeName()) && special.getAttributeName().indexOf("冰") >= 0) {
attr = special.getAttributeName(); attr = special.getAttributeName();
attrEng = special.getAttributeForeignName(); attrEng = special.getAttributeForeignName();
break; break;
......
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