diff flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java @ 5584:d35a0bc153fa

Added missing validation check.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Apr 2013 23:19:01 +0200
parents 523cd27b4c42
children
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java	Fri Apr 05 23:16:31 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java	Fri Apr 05 23:19:01 2013 +0200
@@ -102,7 +102,7 @@
         String uuid        = node.getAttributeNS(uri, "uuid");
         String ttlStr      = node.getAttributeNS(uri, "ttl");
 
-        if (!uuid.isEmpty() && !ttlStr.isEmpty()) {
+        if (!uuid.isEmpty() && !ttlStr.isEmpty() && !creationStr.isEmpty()) {
             try {
                 long time = Long.parseLong(creationStr);
                 long ttl  = Long.parseLong(ttlStr);

http://dive4elements.wald.intevation.org