[Schmitzm-commits] r1349 - branches/2.3.x/src/schmitzm/geotools/styling

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Dec 17 01:20:36 CET 2010


Author: alfonx
Date: 2010-12-17 01:20:36 +0100 (Fri, 17 Dec 2010)
New Revision: 1349

Modified:
   branches/2.3.x/src/schmitzm/geotools/styling/StylingUtil.java
Log:
avoids NPE

public static Graphic clone(Graphic graphic) {
		if (graphic == null)
			return null;
			


Modified: branches/2.3.x/src/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- branches/2.3.x/src/schmitzm/geotools/styling/StylingUtil.java	2010-12-17 00:20:28 UTC (rev 1348)
+++ branches/2.3.x/src/schmitzm/geotools/styling/StylingUtil.java	2010-12-17 00:20:36 UTC (rev 1349)
@@ -306,6 +306,8 @@
 	 * @author <a href="mailto:skpublic at wikisquare.de">Stefan Alfons Tzeggai</a>
 	 */
 	public static Graphic clone(Graphic graphic) {
+		if (graphic == null)
+			return null;
 		DuplicatingStyleVisitor duplicatingStyleVisitor = new DuplicatingStyleVisitor();
 		graphic.accept(duplicatingStyleVisitor);
 		return (Graphic) duplicatingStyleVisitor.getCopy();



More information about the Schmitzm-commits mailing list