comparison src/java/de/intevation/mxd/reader/MXDReader.java @ 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 be441fa4bed0
children 9bb629743d2c
comparison
equal deleted inserted replaced
311:c8b8f887ef80 312:503d3a453a04
134 * Read the MXD file content. 134 * Read the MXD file content.
135 */ 135 */
136 public boolean read() 136 public boolean read()
137 throws Exception { 137 throws Exception {
138 logger.debug("read()"); 138 logger.debug("read()");
139 if(filename == "") { 139 if(filename.isEmpty()) {
140 throw new IOException("Please set filename!"); 140 throw new IOException("Please set filename!");
141 } 141 }
142 else { 142 else {
143 util.addFilename(filename); 143 util.addFilename(filename);
144 openMapDocument(); 144 openMapDocument();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)