[Schmitzm-commits] r1720 - branches/2.6.x/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 7 11:24:21 CEST 2011


Author: alfonx
Date: 2011-09-07 11:24:18 +0200 (Wed, 07 Sep 2011)
New Revision: 1720

Modified:
   branches/2.6.x/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
Log:
Avoid NPE in StylingUtil.optimizeStyle if no Filter is set

Modified: branches/2.6.x/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- branches/2.6.x/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java	2011-09-06 20:10:50 UTC (rev 1719)
+++ branches/2.6.x/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java	2011-09-07 09:24:18 UTC (rev 1720)
@@ -3050,6 +3050,9 @@
 	 *         AtlasStyler.
 	 */
 	public static Filter simpliyfyFilter(Filter f) {
+		
+		if (f == null) return Filter.INCLUDE; 
+		
 		if (f instanceof AndImpl) {
 			AndImpl and = (AndImpl) f;
 			Filter p1 = (Filter) and.getChildren().get(0);



More information about the Schmitzm-commits mailing list