Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6742

Fix NPE when fetching the binary of the News document model

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2022.1.3
    • Fix Version/s: 2022.1.4, 2022.2.0
    • Component/s: Studio Modeler

      Description

      Fix NPE when fetching the binary of the News document model
      Full stacktrace

      java.lang.NullPointerException: null
      	at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:2360) ~[commons-io-2.8.0.jar:2.8.0]
      	at org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:2453) ~[commons-io-2.8.0.jar:2.8.0]
      	at com.nuxeo.connect.rest.impl.NewsResourceImpl.getNewsThumbnail(NewsResourceImpl.java:51) ~[nuxeo-connect-rest-api-2022.1.3.jar:?]
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: