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

When documents containing attachments were imported, XWikiAttachmentArchive.getVersions() throws an NPE if there is only one version.

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      to repeat:

      {{groovy}}
      xwiki.getDocument('Sandbox.WebHome').getDocument().getAttachmentList().get(0).loadArchive(xcontext.getContext()).getVersions();
      {{/groovy}}
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              calebjamesdelisle CalebJamesDeLisle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: