Uploaded image for project: 'Magnolia Diff Module'
  1. Magnolia Diff Module
  2. MGNLDIFF-72

NPE in the activation dialog

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.2.2
    • 1.2

    Description

      The issue has been introduced with MGNLDIFF-33 and lies in the following code

      public boolean hasThisVersion() throws RepositoryException {
         return VersionUtil.getVersion(getOriginalContent().getJCRNode(),   getVersionLabel()) != null;
       }
      

      As getOriginalContent() can return null, a check for null should be performed before calling getJCRNode().

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD