Issue #2646 Fix Drawing layer NPE.

Former-commit-id: 6ed57a4326 [formerly f31f7dc53a] [formerly 068a9c6efb] [formerly 5cbe38aade [formerly 068a9c6efb [formerly 1e5f3e1375ec3d9485863b38e6926e95e7b3921e]]]
Former-commit-id: 5cbe38aade
Former-commit-id: 60e91275a1e27856c383678c6751b198b8bedd38 [formerly e1fe6136ee]
Former-commit-id: d43a97c51e
This commit is contained in:
Ben Steffensmeier 2014-01-17 10:41:28 -06:00
parent c1e42e49e9
commit 6df6690785

View file

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