myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [myfaces] branch master updated: fixed NPE on 404
Date Thu, 07 Mar 2019 16:12:55 GMT
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 <tandraschko@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)
         {


Mime
View raw message