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

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

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

tandraschko pushed a commit to branch 2.3.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3.x by this push:
     new 2887c4b  Fix NPE - MYFACES-4431 (#238)
2887c4b is described below

commit 2887c4bcbef5c4172065018a23cf6db9ef69e2e2
Author: Volodymyr Siedlecki <vo...@gmail.com>
AuthorDate: Fri Apr 1 04:28:35 2022 -0400

    Fix NPE - MYFACES-4431 (#238)
---
 .../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 8f102a9..8f9b77e 100755
--- a/impl/src/main/java/org/apache/myfaces/application/NavigationHandlerImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/application/NavigationHandlerImpl.java
@@ -953,6 +953,10 @@ public class NavigationHandlerImpl
         Set<NavigationCase> casesSet = null;
         NavigationCase navigationCase = null;
         
+        if (flowNavigationStructure == null)
+        {
+            return navigationCase;
+        }
         if (viewId != null)
         {
             casesSet = flowNavigationStructure.getNavigationCases().get(viewId);