Skip to content

loadJSONObject/Array() now return null if the given file was not found#6081

Closed
fukuchi wants to merge 1 commit into
processing:masterfrom
fukuchi:loadjson-fixes
Closed

loadJSONObject/Array() now return null if the given file was not found#6081
fukuchi wants to merge 1 commit into
processing:masterfrom
fukuchi:loadjson-fixes

Conversation

@fukuchi

@fukuchi fukuchi commented Aug 3, 2020

Copy link
Copy Markdown

All data loading functions such as loadBytes() and loadXML() return null instead of throwing an exception when the given file was not found. On the other hand, loadJSONObject() and loadJSONArray() throws NullPointerException. This is not consistent.

This patch fixes this problem and gives the developers a consistent error handling way to other loading functions.

benfry added a commit to benfry/processing4 that referenced this pull request Sep 23, 2020
@benfry

benfry commented Sep 23, 2020

Copy link
Copy Markdown
Contributor

Thanks; this is now incorporated for 4.0 alpha 3: processing/processing4@2b19ff8

@benfry benfry closed this Sep 23, 2020
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked. Pull requests that have been closed are automatically locked 30 days after the last comment.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants