tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject tapestry-5 git commit: TAP5-2327: fix NullPointerException
Date Thu, 14 Jul 2016 06:09:21 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/master f161aa89b -> e048d9542


TAP5-2327: fix NullPointerException


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/e048d954
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/e048d954
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/e048d954

Branch: refs/heads/master
Commit: e048d9542c1174d00363771ecdc74b46e2962ff2
Parents: f161aa8
Author: Jochen Kemnade <jkemnade@apache.org>
Authored: Thu Jul 14 08:08:44 2016 +0200
Committer: Jochen Kemnade <jkemnade@apache.org>
Committed: Thu Jul 14 08:08:44 2016 +0200

----------------------------------------------------------------------
 .../org/apache/tapestry5/internal/services/CookiesImpl.java     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e048d954/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/CookiesImpl.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/CookiesImpl.java
b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/CookiesImpl.java
index 495d2c9..e9bfd0b 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/CookiesImpl.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/CookiesImpl.java
@@ -140,7 +140,10 @@ public class CookiesImpl implements Cookies
                     cookie.setComment(comment);
                 }
 
-                cookie.setHttpOnly(httpOnly);
+                if (httpOnly != null)
+                {
+                    cookie.setHttpOnly(httpOnly);
+                }
 
                 cookieSink.addCookie(cookie);
             }


Mime
View raw message