Revision 42579 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.jts/src/main/java/org/gvsig/fmap/geom/jts/operation/fromwkt/FromWKT.java
FromWKT.java | ||
---|---|---|
63 | 63 |
try { |
64 | 64 |
return parser.read((String) ctx.getAttribute(FromWKTGeometryOperationContext.TEXT)); |
65 | 65 |
} catch (ParseException e) { |
66 |
throw new GeometryOperationException(geom.getType(), CODE, e); |
|
66 |
int type = geom==null? Geometry.TYPES.NULL : geom.getType(); |
|
67 |
throw new GeometryOperationException(type, CODE, e); |
|
67 | 68 |
} |
68 | 69 |
} |
69 | 70 |
|
Also available in: Unified diff