Skip to content

Improve error handling in GetArray functions#162

Closed
XxXAdvisaryXxX wants to merge 1 commit intoWaspScripts:mainfrom
XxXAdvisaryXxX:patch-7
Closed

Improve error handling in GetArray functions#162
XxXAdvisaryXxX wants to merge 1 commit intoWaspScripts:mainfrom
XxXAdvisaryXxX:patch-7

Conversation

@XxXAdvisaryXxX
Copy link
Contributor

Added some error handling. If you search for an item that isnt in the database; we get memory access issues when trying to access the returned jsonitem.

This way protects the lib from getting access errors. The user will have to do their own error handling on their end if they ever decide to use it.

This only happens if you have a typo or the item isnt in the database. Perhaps you have a better way to handle it?

Added some error handling. If you search for an item that isnt in the database; we get memory access issues when trying to access the returned jsonitem.

This way protects the lib from getting access errors. The user will have to do their own error handling on their end if they ever decide to use it. 

This only happens if you have a typo or the item isnt in the database. Perhaps you have a better way to handle it?
@Torwent Torwent closed this Feb 16, 2026
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

Successfully merging this pull request may close these issues.

2 participants