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 Jan 4, 2021
1 parent 9959e6a commit 0be3ea4
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 0be3ea4

Please sign in to comment.