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

NullPointer in addAttachments in Document

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2
    • Fix Version/s: 1.3 RC1
    • Component/s: {Unused} APIs
    • Labels:
      None
    • Similar issues:

      Description

      Nullpointer in rarely used addAttachments function probably because of changes in the doc cloning

      java.lang.NullPointerException
      at com.xpn.xwiki.api.Document.addAttachment(Document.java:1716)
      at com.xpn.xwiki.api.Document.addAttachments(Document.java:1681)
      at com.xpn.xwiki.api.Document.addAttachments(Document.java:1638)
      at sun.reflect.N

      I'll try a patch and will need to commit it in 1.1 branch

        Attachments

          Activity

            People

            • Assignee:
              ludovic Ludovic Dubost
              Reporter:
              ludovic Ludovic Dubost
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: