changeset 5583:523cd27b4c42

Element.getAttributeNS() does not return null values.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Apr 2013 23:16:31 +0200
parents 2d00c7685bd0
children d35a0bc153fa
files flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java	Fri Apr 05 17:15:16 2013 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java	Fri Apr 05 23:16:31 2013 +0200
@@ -102,7 +102,7 @@
         String uuid        = node.getAttributeNS(uri, "uuid");
         String ttlStr      = node.getAttributeNS(uri, "ttl");
 
-        if (uuid != null && ttlStr != null) {
+        if (!uuid.isEmpty() && !ttlStr.isEmpty()) {
             try {
                 long time = Long.parseLong(creationStr);
                 long ttl  = Long.parseLong(ttlStr);

http://dive4elements.wald.intevation.org