Uploaded image for project: 'Tiles Request'
  1. Tiles Request
  2. TREQ-10

NPE while reading the session scope when no session has been created

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Labels:
      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)

        Attachments

          Activity

            People

            • Assignee:
              michaelsembwever mck
              Reporter:
              nlebas Nicolas Le Bas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: