Skip to content

Commit

Permalink
Merge pull request #599 from pnicolucci/MYFACES-4611
Browse files Browse the repository at this point in the history
MYFACES-4611: Avoid NPE when root is null
  • Loading branch information
pnicolucci authored Jul 12, 2023
2 parents 89dd663 + 9b3b9aa commit 431a6f7
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 431a6f7

Please sign in to comment.