Skip to content

Cannot invoke "java.lang.StringBuilder.substring(int, int)" because "this.mixedBuffer" is null #1

@SGE66

Description

@SGE66

Hi,
seems the library is not (fully) compatible with org.json (maybe it was not the intention) ?

JSONObject test = new JSONObject(s); test.put("viaapi",false); System.out.println(test.getBoolean("viaapi")); // OK System.out.println(test.getString("viaapi")); // FAILS

With org.json the test.getString("viaapi") returns "false".
Here it fails with error: Cannot invoke "java.lang.StringBuilder.substring(int, int)" because "this.mixedBuffer" is null

Can you have a look and correct if this is not intented ?
Thx,
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions