You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 14, 2023. It is now read-only.
Error thrown for getBoolean when fragment does not yet exist. #118
I had a "Select" type with yes/no, and I show default text of "no". User's then don't select "yes" assuming the value is "no" and then when I try to interpret the value I get the following error:
Also if you call api.getLink('text-url').url(). It errors out if it doesn't exist, this shouldn't be the case in my opinion. You could use lodash get method to solve it: https://lodash.com/docs/4.17.4#get. @erwan
Activity
erwan commentedon Sep 29, 2016
yes, we need to do a better job with the NPE in general (not just for
getBoolean). We're working on a newer version that will improve that.evvvritt commentedon Apr 4, 2017
Hi @erwan, any update on this? I vote it returns
falseif notyes,on,true— so includingundefinedandnull. Thankserwan commentedon Apr 4, 2017
@arnaudlewis I believe you worked on that?
arnaudlewis commentedon Apr 4, 2017
@erwan no i did not but thanks for your message. I'll take a look asap @evvvritt
sarunast commentedon Apr 29, 2017
Also if you call
api.getLink('text-url').url(). It errors out if it doesn't exist, this shouldn't be the case in my opinion. You could use lodashgetmethod to solve it: https://lodash.com/docs/4.17.4#get. @erwan