Showing
1 changed file
with
3 additions
and
0 deletions
@@ -57,6 +57,9 @@ public class ProductAttributeService { | @@ -57,6 +57,9 @@ public class ProductAttributeService { | ||
57 | } | 57 | } |
58 | ProductAttribute pa= ProductAttributeMap.get(a.getAttributeId()); | 58 | ProductAttribute pa= ProductAttributeMap.get(a.getAttributeId()); |
59 | String[] attributeValueIds = a.getAttributeValueId().split(","); | 59 | String[] attributeValueIds = a.getAttributeValueId().split(","); |
60 | + if(pa.getAttributeValues()==null||pa.getAttributeValues().indexOf("[")<0){ | ||
61 | + return; | ||
62 | + } | ||
60 | JSONArray values = JSONArray.parseArray(pa.getAttributeValues()); | 63 | JSONArray values = JSONArray.parseArray(pa.getAttributeValues()); |
61 | Set<String> attributeNameSet=new HashSet<String>(); | 64 | Set<String> attributeNameSet=new HashSet<String>(); |
62 | values.forEach(v->{ | 65 | values.forEach(v->{ |
-
Please register or login to post a comment