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

Avoid NPE in Audio Thumbnail generation

    XMLWordPrintable

    Details

      Description

      It looks like it is possible to raise an NPE while creating empty audio file ?

      work/updateThumbListenerPool-02,in:2584,inCheckpoint:2584,out:0,lastRead:1689795637791,lastTimer:0,wm:221484893787521025,loop:13459,checkpoint
      
      Skip Work in failure: id: 52501809606241.38638370, title: Listener updateThumbListener [scheduleThumbnailUpdate/3aa8c286-d97d-4946-960b-694baf1de026, scheduleThumbnailUpdate/57667c60-461c-4354-9999-974892f1302c], offset: work-updateThumbListener-11:+4783199, record: Record{watermark=221484893813080064, wmDate=2023-07-19 19:40:37.612, flags=[DEFAULT], key='3aa8c286-d97d-4946-960b-694baf1de026', data.length=4267, ...
      
      
      java.lang.NullPointerException: null
      	at org.jaudiotagger.audio.AudioFile.checkFileExists(AudioFile.java:185) ~[jaudiotagger-2.0.3.jar:?]
      	at org.jaudiotagger.audio.AudioFile.checkFilePermissions(AudioFile.java:206) ~[jaudiotagger-2.0.3.jar:?]
      	at org.jaudiotagger.audio.mp3.MP3File.<init>(MP3File.java:373) ~[jaudiotagger-2.0.3.jar:?]
      	at org.jaudiotagger.audio.mp3.MP3File.<init>(MP3File.java:120) ~[jaudiotagger-2.0.3.jar:?]
      	at org.jaudiotagger.audio.mp3.MP3File.<init>(MP3File.java:539) ~[jaudiotagger-2.0.3.jar:?]
      	at org.nuxeo.ecm.platform.audio.extension.ThumbnailAudioFactory.computeThumbnail(ThumbnailAudioFactory.java:95) ~[nuxeo-platform-audio-core-2021.38.4.jar:?]
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.computeThumbnail(ThumbnailServiceImpl.java:99) ~[nuxeo-core-api-2021.38.4.jar:?]
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.computeThumbnail(ThumbnailAdapter.java:58) ~[nuxeo-core-api-2021.38.4.jar:?]
      	at org.nuxeo.ecm.platform.thumbnail.listener.ThumbnailHelper.createThumbnailIfNeeded(ThumbnailHelper.java:81) ~[nuxeo-thumbnail-2021.38.4.jar:?]
      	at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.processDoc(UpdateThumbnailListener.java:54) ~[nuxeo-thumbnail-2021.38.4.jar:?]
      	at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.handleEvent(UpdateThumbnailListener.java:84) ~[nuxeo-thumbnail-2021.38.4.jar:?]
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:209) ~[nuxeo-core-event-2021.38.4.jar:?]
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: