Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/utils/WKTUtils.java @ 482:64e65daa65e9
Fixed some bugs with calculating "Horizontalschnitte".
gnv-artifacts/trunk@557 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 17 Jan 2010 21:26:21 +0000 |
parents | 211cad2fb5ba |
children | 45be952a3215 |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/utils/WKTUtils.java Sun Jan 17 16:34:11 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/utils/WKTUtils.java Sun Jan 17 21:26:21 2010 +0000 @@ -60,7 +60,9 @@ public static Coordinate toCoordinate(String shape) { try { - return ((Point)(new WKTReader().read(shape))).getCoordinate(); + return shape != null + ? ((Point)(new WKTReader().read(shape))).getCoordinate() + : null; } catch (ParseException pe) { log.error(pe);