You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by me...@apache.org on 2022/04/01 12:38:30 UTC

[myfaces] branch 2.3-next updated: Fix NPE - MYFACES-4431 (#238) (#242)

This is an automated email from the ASF dual-hosted git repository.

melloware pushed a commit to branch 2.3-next
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3-next by this push:
     new 0e3448c  Fix NPE - MYFACES-4431 (#238) (#242)
0e3448c is described below

commit 0e3448cc824b8908bc4b4c87627a216a0dd5ad8e
Author: Melloware <me...@gmail.com>
AuthorDate: Fri Apr 1 08:38:26 2022 -0400

    Fix NPE - MYFACES-4431 (#238) (#242)
---
 .../java/org/apache/myfaces/application/NavigationHandlerImpl.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/impl/src/main/java/org/apache/myfaces/application/NavigationHandlerImpl.java b/impl/src/main/java/org/apache/myfaces/application/NavigationHandlerImpl.java
index fc66631..f98e839 100755
--- a/impl/src/main/java/org/apache/myfaces/application/NavigationHandlerImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/application/NavigationHandlerImpl.java
@@ -934,6 +934,10 @@ public class NavigationHandlerImpl extends ConfigurableNavigationHandler
         Set<NavigationCase> casesSet = null;
         NavigationCase navigationCase = null;
         
+        if (flowNavigationStructure == null)
+        {
+            return navigationCase;
+        }
         if (viewId != null)
         {
             casesSet = flowNavigationStructure.getNavigationCases().get(viewId);