Skip to content

avoid throwing exceptions when namespace function called with nil#33

Open
mprokopov wants to merge 1 commit intoJarrodCTaylor:masterfrom
mprokopov:master
Open

avoid throwing exceptions when namespace function called with nil#33
mprokopov wants to merge 1 commit intoJarrodCTaylor:masterfrom
mprokopov:master

Conversation

@mprokopov
Copy link

When the null value supplied to the namespace function execution doesn't hit the second parameter to or, namely string "unnamespaced" because it throws Exception ClassCastException for null.

Could be fixed by wrapping in try-catch block, but probably using and is a bit simpler.

@delyada
Copy link

delyada commented Apr 8, 2021

Schema Cartographer wasn't working for us either on our still small schema, failing with a NullPointerException (I suspect the op typoed ClassCastException while meaning the NPE.) After a debugging session I reached the same cause and @mprokopov's solution did it for us too. Thanks!

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