Skip to content

Commit e758fc6

Browse files
committed
test case for polyline buffer which throws npe
1 parent 3858559 commit e758fc6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/java/com/esri/core/geometry/TestBuffer.java

100644100755
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,17 @@ public void testBufferPolyline() {
266266
assertTrue(Math.abs(pointCount - 208.0) < 10);
267267
assertTrue(simplify.isSimpleAsFeature(result, sr, null));
268268
}
269+
270+
{
271+
inputGeom = new Polyline();
272+
inputGeom.startPath(1.762614,0.607368);
273+
inputGeom.lineTo(1.762414,0.606655);
274+
inputGeom.lineTo(1.763006,0.607034);
275+
inputGeom.lineTo(1.762548,0.607135);
276+
277+
Geometry result = buffer.execute(inputGeom, sr, 0.005, null);
278+
assertTrue(simplify.isSimpleAsFeature(result, sr, null));
279+
}
269280
}
270281

271282
@Test

0 commit comments

Comments
 (0)