Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
40e39a20
Commit
40e39a20
authored
Jan 16, 2026
by
Luna Riegel
Browse files
Test: Fix NPE in testcase
parent
183b4ce7
Pipeline
#12317
passed with stage
in 2 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/CityDoctorEdge/src/test/java/de/hft/stuttgart/citydoctor2/edge/IntersectionErrorsTest.java
View file @
40e39a20
...
@@ -41,7 +41,7 @@ public class IntersectionErrorsTest {
...
@@ -41,7 +41,7 @@ public class IntersectionErrorsTest {
Geometry
geom
=
new
Geometry
(
GeometryType
.
SOLID
,
Lod
.
LOD1
,
Orientation
.
OUTWARD
);
Geometry
geom
=
new
Geometry
(
GeometryType
.
SOLID
,
Lod
.
LOD1
,
Orientation
.
OUTWARD
);
ConcretePolygon
p1
=
new
ConcretePolygon
();
ConcretePolygon
p1
=
new
ConcretePolygon
();
geom
.
addPolygon
(
p1
);
LinearRing
ext1
=
new
LinearRing
(
LinearRingType
.
EXTERIOR
);
LinearRing
ext1
=
new
LinearRing
(
LinearRingType
.
EXTERIOR
);
p1
.
setExteriorRing
(
ext1
);
p1
.
setExteriorRing
(
ext1
);
...
@@ -66,6 +66,7 @@ public class IntersectionErrorsTest {
...
@@ -66,6 +66,7 @@ public class IntersectionErrorsTest {
ext1
.
addVertex
(
v1
);
ext1
.
addVertex
(
v1
);
ConcretePolygon
p2
=
new
ConcretePolygon
();
ConcretePolygon
p2
=
new
ConcretePolygon
();
geom
.
addPolygon
(
p2
);
LinearRing
ext2
=
new
LinearRing
(
LinearRingType
.
EXTERIOR
);
LinearRing
ext2
=
new
LinearRing
(
LinearRingType
.
EXTERIOR
);
p2
.
setExteriorRing
(
ext2
);
p2
.
setExteriorRing
(
ext2
);
...
@@ -88,8 +89,8 @@ public class IntersectionErrorsTest {
...
@@ -88,8 +89,8 @@ public class IntersectionErrorsTest {
ext2
.
addVertex
(
v8
);
ext2
.
addVertex
(
v8
);
ext2
.
addVertex
(
v5
);
ext2
.
addVertex
(
v5
);
geom
.
addPolygon
(
p1
);
geom
.
addPolygon
(
p2
);
geom
.
prepareForChecking
();
geom
.
prepareForChecking
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment