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

MockProperty.setValue(final String[] newValues) throws null pointer exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Testing JCR Mock 1.4.0
    • Fix Version/s: Testing JCR Mock 1.4.2
    • Component/s: Testing
    • Labels:
      None

      Description

      There is no null check in this api method. In our case product code is passing a null value in the below form for a multivalve property.

      currentNode.setProperty(propertyName, (String[])null);

      MockProperty api throws null pointer exception when we use JCR mocking.

        Attachments

          Activity

            People

            • Assignee:
              sseifert Stefan Seifert
              Reporter:
              pankajpr Pankaj Parashar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 50m
                50m