Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11465

NPE in JcrPropertyMapCacheEntry when converting from InputStream value to Number

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JCR Resource 3.2.2
    • JCR
    • None

    Description

      while working on SLING-11461 trying to reduce complexity in JcrPropertyMapCacheEntry. i spotted that this class is prone to multiple NPEs.

      in case of value being of type InputStream conversion to a number will try to retrieve the length of the property fields, which however is null if JcrPropertyMapCacheEntry has been created with a value and a node.

      cziegeler fyi

      Attachments

        Issue Links

          Activity

            People

              angela Angela Schreiber
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m