Skip to content

Missing Null-Check #79

@starzlordb

Description

@starzlordb

While iterating an json array with null-elements I get an exception at this line:

return "</"+ (jsonObj.__prefix!=null? (jsonObj.__prefix+":"):"")+elementName+">";

My solution was to check
return "</"+ (jsonObj && jsonObj.__prefix!=null? (jsonObj.__prefix+":"):"")+elementName+">";

That worked like a charm.

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