Skip to content

Cases where json_object_get() returns INVALID_HANDLE #2

@Selena-Gomez

Description

@Selena-Gomez

In the sourcepawn native json_object_get_float() (and possibly others), where json_object_get() is used, the error case of json_object_get() is not covered.
For the store plugin, this leads to errors in console if an item does not have a specific attribute.
Tough it's possible to overcome this by checking if json_object_get(Handle, attribute string) returns INVALID_HANDLE, before calling json_object_get_float() and the like.

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