[Schmitzm-commits] r1225 - trunk/src/skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 3 18:05:43 CET 2010


Author: alfonx
Date: 2010-11-03 18:05:42 +0100 (Wed, 03 Nov 2010)
New Revision: 1225

Modified:
   trunk/src/skrueger/geotools/StyledLayerUtil.java
Log:


Modified: trunk/src/skrueger/geotools/StyledLayerUtil.java
===================================================================
--- trunk/src/skrueger/geotools/StyledLayerUtil.java	2010-11-03 16:47:31 UTC (rev 1224)
+++ trunk/src/skrueger/geotools/StyledLayerUtil.java	2010-11-03 17:05:42 UTC (rev 1225)
@@ -91,6 +91,7 @@
 import schmitzm.geotools.styling.StylingUtil;
 import schmitzm.io.IOUtil;
 import schmitzm.lang.LangUtil;
+import schmitzm.swing.ExceptionDialog;
 import schmitzm.swing.JPanel;
 import schmitzm.swing.SwingUtil;
 import skrueger.AttributeMetadataImpl;
@@ -942,6 +943,12 @@
 			final SimpleFeatureType featureType, final int iconWidth,
 			final int iconHeight) {
 
+		if (featureType == null) {
+			ExceptionDialog.show(new IllegalStateException(
+					"featureType is null!"));
+			return new JPanel();
+		}
+
 		final List<FeatureTypeStyle> list = style.featureTypeStyles();
 
 		final JPanel panel = new JPanel(new MigLayout("wrap 2", "[]:3:[]"));



More information about the Schmitzm-commits mailing list