Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimize surprise NPEs in Loc before SiteMap assignment #1949

Merged
merged 2 commits into from
May 15, 2018

Conversation

farmdawgnation
Copy link
Member

Closes #1912.

It's possible to get a surprise NPE if you try to read the currentValue
of a loc that's not the current loc instance. This is because the Loc
you're trying to read may not have a SiteMap assigned to it, which will
cause explosions in param calculation.

We now guard against this in various high-profile public API methods so
that we minimize the footprint of surprise NPEs.
@farmdawgnation farmdawgnation merged commit 033f78b into master May 15, 2018
@farmdawgnation farmdawgnation deleted the msf_issue_1912 branch May 15, 2018 21:40
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