Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-11215

DocumentPreview throws NPE when used with a non persisted document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.0-HF10
    • Fix Version/s: 5.6.0-HF13, 5.7.1
    • Component/s: Preview

      Description

      When using DocumentPreview#getUrlFromDocumentView() with a bare DocumentModel that has not been persisted by a session.createDocument() call, it throws an NPE.

      Avoid that by returning null if document has not been persisted

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: