myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] 01/02: TOBAGO-1906: NullPointerException when view has expired may occur
Date Thu, 05 Jul 2018 11:36:57 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch tobago-2.0.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit e8befca5fc11d8fa601e7b064da295eea7e39273
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Thu Jun 28 17:35:35 2018 +0200

    TOBAGO-1906: NullPointerException when view has expired may occur
---
 .../org/apache/myfaces/tobago/internal/context/ClientPropertiesKey.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ClientPropertiesKey.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ClientPropertiesKey.java
index c17ace2..4b7cc18 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ClientPropertiesKey.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/context/ClientPropertiesKey.java
@@ -60,7 +60,7 @@ public final class ClientPropertiesKey implements Serializable {
     contentType = clientProperties.getContentType();
     theme = clientProperties.getTheme();
     userAgent = clientProperties.getUserAgent();
-    locale = viewRoot.getLocale();
+    locale = viewRoot != null ? viewRoot.getLocale() : null;
     hashCode = calcHashCode();
   }
 


Mime
View raw message