Project

General

Profile

« Previous | Next » 

Revision 52956

fixed null element

View differences:

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