Revision 52956
Added by Sandro La Bruzzo over 5 years ago
ScholixToActions.java | ||
---|---|---|
343 | 343 |
} |
344 | 344 |
|
345 | 345 |
public static String getStringValue(final JsonObject root, final String key) { |
346 |
if (root.has(key)) |
|
346 |
if (root.has(key) && !root.get(key).isJsonNull())
|
|
347 | 347 |
return root.get(key).getAsString(); |
348 | 348 |
return null; |
349 | 349 |
} |
Also available in: Unified diff
fixed null element