Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0.0
-
None
Description
If no HttpSession has been created, the following code leads to an exception:
Map<String, Object> scopes = new HashMap<String, Object>();
Map<String, Object> data = request.getContext("session");
scopes.putAll(data);
java.lang.NullPointerException
org.apache.tiles.request.util.RequestUtil.enumerationSize(RequestUtil.java:64)
org.apache.tiles.request.collection.ReadOnlyEnumerationMap.size(ReadOnlyEnumerationMap.java:128)
java.util.HashMap.putAll(HashMap.java:498)