comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java @ 307:f0f106c7b906

Fixed some broken Method-Extentions. Added some null-value checks. gnv-artifacts/trunk@365 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 24 Nov 2009 14:39:36 +0000
parents a16d337c5678
children 63f8b3fb7d9a
comparison
equal deleted inserted replaced
306:e7f1c79bf9cd 307:f0f106c7b906
98 98
99 99
100 protected String findValueTitle(Collection values, String id) { 100 protected String findValueTitle(Collection values, String id) {
101 log.debug("find description of dataset"); 101 log.debug("find description of dataset");
102 102
103 Iterator it = values.iterator(); 103 if (values != null){
104 while (it.hasNext()) { 104 Iterator it = values.iterator();
105 KeyValueDescibeData data = (KeyValueDescibeData) it.next(); 105 while (it.hasNext()) {
106 106 KeyValueDescibeData data = (KeyValueDescibeData) it.next();
107 if (id.equals(data.getKey())) 107
108 return data.getValue(); 108 if (id.equals(data.getKey()))
109 return data.getValue();
110 }
109 } 111 }
110 return ""; 112 return "";
111 } 113 }
112 } 114 }
113 // vim:set ts=4 sw=4 si et sta sts=4 fenc=latin1 : 115 // vim:set ts=4 sw=4 si et sta sts=4 fenc=latin1 :

http://dive4elements.wald.intevation.org