Skip to content

Commit

Permalink
Merge pull request #603 from pnicolucci/MYFACES-4611-22
Browse files Browse the repository at this point in the history
MYFACES-4611: Avoid NPE when root is null
  • Loading branch information
pnicolucci committed Jul 12, 2023
2 parents 9643422 + 0c7a080 commit c216d43
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 c216d43

Please sign in to comment.