-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid surprise NPEs on param / sitemap methods
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.
- Loading branch information
1 parent
47d4e06
commit 52b2e91
Showing
2 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters