Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4377

NullPointerException from XWikiDocument.equals if document contains null object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.1 M1
    • 2.0
    • {Unused} Core
    • None
    • patch
    • Trivial

    Description

      While cycling through all documents in XE and looking for differences between my loader and the default, I found an error from documents which have missing places in the set of objects. XWikiDocument.equals checks to see if the other document has null objects, but doesn't check to see if "this" document has null objects before calling equals on the objects. This can cause a NullPointerException.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: