changeset 4413:c62598c372ab

FLYSUtils: Null-guard some conditionals (autoboxes).
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 05 Nov 2012 17:32:59 +0100
parents 1b4aaa7dbd07
children 89ae5ad7402f
files flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java	Mon Nov 05 17:31:51 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java	Mon Nov 05 17:32:59 2012 +0100
@@ -187,10 +187,10 @@
 
         Boolean isFree = flys.getDataAsBoolean("wq_isfree");
 
-        if (isQ) {
+        if (isQ != null && isQ) {
             return isFree ? WQ_MODE.QFREE : WQ_MODE.QGAUGE;
         }
-        else if (!isQ) {
+        else if (isQ != null && !isQ) {
             return isFree ? WQ_MODE.WFREE : WQ_MODE.WGAUGE;
         }
         else {

http://dive4elements.wald.intevation.org