bugfix: viewer failed to open files with null attributes
This commit is contained in:
parent
b0bffa176a
commit
bc38edfea1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue