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

NPE in the activation dialog

XMLWordPrintable

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

      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().

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD