[Schmitzm-commits] r1721 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling

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


Author: alfonx
Date: 2011-09-07 11:25:41 +0200 (Wed, 07 Sep 2011)
New Revision: 1721

Modified:
   trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
Log:
Avoid NPE in StylingUtil.optimizeStyle if filter is null

Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java	2011-09-07 09:24:18 UTC (rev 1720)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StylingUtil.java	2011-09-07 09:25:41 UTC (rev 1721)
@@ -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