Skip to content

Commit

Permalink
MYFACES-4611: Avoid NPE when root is null
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolucci committed Jul 12, 2023
1 parent 11b76d2 commit 474faf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public ViewPool getViewPool(FacesContext context, UIViewRoot root)

public boolean isViewPoolEnabledForThisView(FacesContext context, UIViewRoot root)
{
if (root.isTransient())
if (root == null || root.isTransient())
{
// Stateless views cannot be pooled, because we are reusing
// state saving algorithm for that.
Expand Down

0 comments on commit 474faf2

Please sign in to comment.