Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/LocationSelect.java @ 2223:6e67b5dd8c4c
Cosmetics.
flys-artifacts/trunk@3863 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 01 Feb 2012 13:58:50 +0000 |
parents | 853cd2120d69 |
children | ee5310134463 |
comparison
equal
deleted
inserted
replaced
2222:606f4fd7f815 | 2223:6e67b5dd8c4c |
---|---|
85 logger.debug("LocationSelect.validate"); | 85 logger.debug("LocationSelect.validate"); |
86 | 86 |
87 FLYSArtifact flys = (FLYSArtifact) artifact; | 87 FLYSArtifact flys = (FLYSArtifact) artifact; |
88 StateData data = getData(flys, FIELD_LOCATIONS); | 88 StateData data = getData(flys, FIELD_LOCATIONS); |
89 | 89 |
90 String locationStr = data != null ? (String) data.getValue() : null; | 90 String locationStr = data != null |
91 ? (String) data.getValue() | |
92 : null; | |
91 | 93 |
92 if (locationStr == null || locationStr.length() == 0) { | 94 if (locationStr == null || locationStr.length() == 0) { |
93 logger.error("No locations given."); | 95 logger.error("No locations given."); |
94 throw new IllegalArgumentException("error_empty_state"); | 96 throw new IllegalArgumentException("error_empty_state"); |
95 } | 97 } |