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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 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)

      Attachments

        1. TREQ-10.patch
          2 kB
          Michael Semb Wever

        Activity

          People

            mck Michael Semb Wever
            nlebas Nicolas LE BAS
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: