|
@@ -44,7 +44,11 @@ public class ItemParser {
|
44
|
44
|
LinkedHashMap<String, String> itemDescription = new LinkedHashMap<String, String>();
|
45
|
45
|
for (String keyValues : keyValuePairs) {
|
46
|
46
|
ArrayList<String> keyAndValue = splitKeysAndValue(keyValues);
|
47
|
|
- itemDescription.put(convertToLowerCase(keyAndValue.get(0)), convertToLowerCase(keyAndValue.get(1)));
|
|
47
|
+ if(keyAndValue.size() == 2) {
|
|
48
|
+ itemDescription.put(convertToLowerCase(keyAndValue.get(0)), convertToLowerCase(keyAndValue.get(1)));
|
|
49
|
+ }else{
|
|
50
|
+ itemDescription.put(convertToLowerCase(keyAndValue.get(0)), null);
|
|
51
|
+ }
|
48
|
52
|
}
|
49
|
53
|
return itemDescription;
|
50
|
54
|
}
|