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

Don't NPE in ImageIdentifier if image resize failed

    XMLWordPrintable

    Details

      Description

      Don't NPE with this stack trace (taken on 5.6.0-HF17):

      ERROR [org.nuxeo.ecm.platform.picture.core.im.IMImageUtils] ImageMagick failed on command: resizer
          java.lang.NullPointerException
              at org.nuxeo.ecm.platform.picture.magick.utils.ImageIdentifier.getInfo(ImageIdentifier.java:41)
              at org.nuxeo.ecm.platform.picture.magick.utils.ImageResizer.resize(ImageResizer.java:54)
              at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$2.callImageMagick(IMImageUtils.java:148)
              at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$ImageMagickCaller.call(IMImageUtils.java:62)
              at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils.resize(IMImageUtils.java:145)
              at org.nuxeo.ecm.platform.picture.ImagingComponent.resize(ImagingComponent.java:69)
              at org.nuxeo.ecm.platform.picture.convert.ResizePictureConverter.convert(ResizePictureConverter.java:66)
              at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:168)
              at org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter.createPictureimpl(AbstractPictureAdapter.java:420)
              at org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter.addViews(AbstractPictureAdapter.java:358)
              at org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter.createPicture(DefaultPictureAdapter.java:98)
              at org.nuxeo.ecm.platform.picture.api.adapters.PictureBlobHolder.setBlob(PictureBlobHolder.java:82)
              at org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter.updateDocument(AbstractFileImporter.java:164)
              at org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter.create(AbstractFileImporter.java:208)
              at org.nuxeo.ecm.platform.filemanager.service.FileManagerService.createDocumentFromBlob(FileManagerService.java:268)
              at org.nuxeo.ecm.webapp.filemanager.FileManageActionsBean.addFile(FileManageActionsBean.java:165)
              at org.nuxeo.ecm.webapp.filemanager.FileManageActionsBean.validate(FileManageActionsBean.java:650)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: