Skip to content

Commit

Permalink
Prevented NPE when buffering degenerate polyline
Browse files Browse the repository at this point in the history
  • Loading branch information
willtemperley committed Nov 8, 2016
1 parent 3858559 commit 70cfd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/esri/core/geometry/Bufferer.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ private Geometry bufferPoint_() {

private Geometry bufferPoint_(Point point) {
assert (m_distance > 0);
Polygon resultPolygon = new Polygon(m_geometry.getDescription());
Polygon resultPolygon = new Polygon();
addCircle_((MultiPathImpl) resultPolygon._getImpl(), point);
return setStrongSimple_(resultPolygon);
}
Expand Down

0 comments on commit 70cfd8d

Please sign in to comment.