Mercurial > dive4elements > river
changeset 3084:d78b7c06e061
Fixed string comparision for identity.
flys-artifacts/trunk@4680 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 18 Jun 2012 08:36:55 +0000 |
parents | 4bd3d8bbb60c |
children | 3e5f45a9e052 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FileUploadService.java |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Mon Jun 18 08:33:48 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Jun 18 08:36:55 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-18 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/services/FileUploadService.java: + Fixed string comparision for identity. + 2012-06-18 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/**/*.java: Added missing vim lines.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FileUploadService.java Mon Jun 18 08:33:48 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FileUploadService.java Mon Jun 18 08:36:55 2012 +0000 @@ -94,7 +94,7 @@ String b64Data = XMLUtils.xpathString( data, XPATH_DATA, ArtifactNamespaceContext.INSTANCE); - if (b64Data != null && b64Data != "") { + if (b64Data != null && b64Data.length() > 0) { byte[] fileData = Base64.decodeBase64(b64Data); return fileData; }