Mercurial > lada > lada-server
changeset 1171:67a85c6a7474
Avoid NPE in TimestampLocker.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 10 Nov 2016 13:48:46 +0100 |
parents | 7d3adb0834f5 |
children | 7c510615a4e8 |
files | src/main/java/de/intevation/lada/lock/TimestampLocker.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/lock/TimestampLocker.java Wed Nov 09 16:32:29 2016 +0100 +++ b/src/main/java/de/intevation/lada/lock/TimestampLocker.java Thu Nov 10 13:48:46 2016 +0100 @@ -111,6 +111,9 @@ try { m = o.getClass().getMethod("getParentModified"); Timestamp ot = (Timestamp)m.invoke(o); + if (ot == null) { + return true; + } return t.getTime() > ot.getTime(); } catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException|