changeset 312:503d3a453a04

Check for isEmpty instead of comparing with "" Comparison failed for me when a linebreak was set in properties
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Sep 2012 17:03:15 +0200
parents c8b8f887ef80
children 9bb629743d2c
files src/java/de/intevation/mxd/reader/MXDReader.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/MXDReader.java	Fri Sep 14 11:54:03 2012 +0200
+++ b/src/java/de/intevation/mxd/reader/MXDReader.java	Fri Sep 14 17:03:15 2012 +0200
@@ -136,7 +136,7 @@
     public boolean read()
     throws Exception {
         logger.debug("read()");
-        if(filename == "") {
+        if(filename.isEmpty()) {
             throw new IOException("Please set filename!");
         }
         else {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)