bugfix: viewer failed to open files with null attributes

This commit is contained in:
Thibault Deckers 2020-04-07 11:06:27 +09:00
parent b0bffa176a
commit bc38edfea1

View file

@ -241,7 +241,8 @@ public class ImageEntry {
// convenience method // convenience method
private static long toLong(Object o) { private static Long toLong(Object o) {
if (o == null) return null;
if (o instanceof Integer) return Long.valueOf((Integer) o); if (o instanceof Integer) return Long.valueOf((Integer) o);
return (long) o; return (long) o;
} }