[Dive4elements-commits] [PATCH 1 of 4] Element.getAttributeNS() does not return null values

Wald Commits scm-commit at wald.intevation.org
Fri Apr 5 23:30:06 CEST 2013


# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1365196591 -7200
# Node ID 523cd27b4c423a4fbaf7b5dfc9e92fa396f3a98e
# Parent  2d00c7685bd0cd7b303f153ea60821dd95cbb419
Element.getAttributeNS() does not return null values.

diff -r 2d00c7685bd0 -r 523cd27b4c42 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 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);


More information about the Dive4elements-commits mailing list