Skip to content
Snippets Groups Projects
Commit f1127cf5 authored by srosse's avatar srosse
Browse files

OO-1285: catch the NPE thrown by jcodec if it cannot read the codec of the file

parent 11c19851
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,8 @@ public class MovieServiceImpl implements MovieService, ThumbnailSPI {
if(ImageHelperImpl.writeTo(frame, scaledImage, scaledSize, "jpeg")) {
size = new FinalSize(scaledSize.getWidth(), scaledSize.getHeight());
}
} catch (IOException | JCodecException e) {
//NullPointerException can be thrown if the jcodec cannot handle the codec of the movie
} catch (IOException | JCodecException | NullPointerException e) {
log.error("", e);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment