Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cases where json_object_get() returns INVALID_HANDLE #2

Open
Selena-Gomez opened this issue Nov 3, 2014 · 0 comments
Open

Cases where json_object_get() returns INVALID_HANDLE #2

Selena-Gomez opened this issue Nov 3, 2014 · 0 comments

Comments

@Selena-Gomez
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant