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 2019/03/07 16:12:55 UTC

[myfaces] branch master updated: fixed NPE on 404

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

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


The following commit(s) were added to refs/heads/master by this push:
     new efebceb  fixed NPE on 404
efebceb is described below

commit efebceb953fcd6860eb0034b220a900d15597aea
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Thu Mar 7 17:12:49 2019 +0100

    fixed NPE on 404
---
 impl/src/main/java/org/apache/myfaces/application/ViewIdSupport.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/impl/src/main/java/org/apache/myfaces/application/ViewIdSupport.java b/impl/src/main/java/org/apache/myfaces/application/ViewIdSupport.java
index a813147..28d93ed 100644
--- a/impl/src/main/java/org/apache/myfaces/application/ViewIdSupport.java
+++ b/impl/src/main/java/org/apache/myfaces/application/ViewIdSupport.java
@@ -620,6 +620,11 @@ public class ViewIdSupport
     
     public boolean isViewProtected(FacesContext context, String viewId)
     {
+        if (viewId == null)
+        {
+            return false;
+        }
+        
         Boolean protectedView = null;
         if (viewIdProtectedCache != null)
         {