Skip to content

Commit

Permalink
[eclipse-ee4j#4431] NPE in ELFlash.get() on first request
Browse files Browse the repository at this point in the history
Signed-off-by: Bartosz Spyrko-Smietanko <[email protected]>
  • Loading branch information
spyrkob committed Oct 14, 2020
1 parent fd3f3d5 commit 0d79be8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions impl/src/main/java/com/sun/faces/context/flash/ELFlash.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ public Object get(Object key) {
if (distributable && context.getExternalContext().getSession(false) != null) {
SessionHelper sessionHelper =
SessionHelper.getInstance(context.getExternalContext());
assert(null != sessionHelper);
sessionHelper.update(context.getExternalContext(), this);
if (sessionHelper != null) {
sessionHelper.update(context.getExternalContext(), this);
}
}

if (LOGGER.isLoggable(Level.FINEST)) {
Expand Down

0 comments on commit 0d79be8

Please sign in to comment.