[Dive4elements-commits] [PATCH 2 of 4] Added missing validation check
Wald Commits
scm-commit at wald.intevation.org
Fri Apr 5 23:30:07 CEST 2013
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1365196741 -7200
# Node ID d35a0bc153fa4722419b633edc9bf045966a0fb3
# Parent 523cd27b4c423a4fbaf7b5dfc9e92fa396f3a98e
Added missing validation check.
diff -r 523cd27b4c42 -r d35a0bc153fa flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java
--- 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);
More information about the Dive4elements-commits
mailing list