Issue #2646 Fix Drawing layer NPE.

Former-commit-id: 1e5f3e1375ec3d9485863b38e6926e95e7b3921e
This commit is contained in:
Ben Steffensmeier 2014-01-17 10:41:28 -06:00
parent eafe61cd37
commit 5cbe38aade

View file

@ -61,8 +61,9 @@ import com.vividsolutions.jts.geom.TopologyException;
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* ------------- -------- ----------- --------------------------
* May 23, 2012 mschenke Initial creation
* May 23, 2012 2646 bsteffen Fix NPE in project.
*
* </pre>
*
@ -656,9 +657,11 @@ public class DrawingToolLayer implements IRenderable {
currentData.geometries = reprojectCollection(
currentData.geometries, projectionMap,
oldGridToNewGrid);
if (currentDrawingLine != null) {
currentDrawingLine = JTS.transform(currentDrawingLine,
oldGridToNewGrid);
}
}
} catch (Exception e) {
UFStatus.getHandler().handle(Priority.PROBLEM,
e.getLocalizedMessage(), e);