[Dive4elements-commits] [PATCH 4 of 8] Avoid NPE if data list is null
Wald Commits
scm-commit at wald.intevation.org
Thu Mar 14 17:27:32 CET 2013
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1363277775 -3600
# Node ID 7712dacc27ab7ba4c77ba004138582ac385006fc
# Parent 6131b352e5e4fe923afa523c3b07beba0dfdacbd
Avoid NPE if data list is null.
diff -r 6131b352e5e4 -r 7712dacc27ab flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java Thu Mar 14 17:13:49 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java Thu Mar 14 17:16:15 2013 +0100
@@ -266,6 +266,9 @@
DataList[] old = desc.getOldData();
for (DataList list: old) {
+ if (list == null) {
+ continue;
+ }
Data d = getData(list.getAll(), name);
if (d != null) {
More information about the Dive4elements-commits
mailing list