You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/07/05 11:36:57 UTC
[myfaces-tobago] 01/02: TOBAGO-1906: NullPointerException when view
has expired may occur
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 <lo...@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();
}