Skip to content

Conversation

@fukuchi
Copy link

@fukuchi fukuchi commented Aug 3, 2020

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
Copy link
Contributor

benfry commented Sep 23, 2020

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

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

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