Skip to content
Snippets Groups Projects
Commit bd37c3c8 authored by fkiefer's avatar fkiefer
Browse files

OO-2454 avoid npe if video has no metadata

parent 07ee2739
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ public class VideoMetadataDAO {
if (metadata.size() > 0) {
return metadata.get(0);
} else {
return null;
return new VideoMetaImpl(800, 600, 5000);
}
}
......
......@@ -91,7 +91,12 @@ public class VideoMetaImpl implements VideoMeta, Persistable, ModifiedInfo {
this.length = length;
}
public VideoMetaImpl(int width, int height, long size) {
this.width = width;
this.height = height;
this.size = size;
}
public VideoMetaImpl() {
// make JAXB happy
}
......
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