Skip to content

Commit

Permalink
disallow the null setting of layer names
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Oct 28, 2024
1 parent 380c6fb commit 021a957
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/eu/mihosoft/vrl/v3d/svg/SVGLoad.java
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,8 @@ public static boolean isCCW(Polygon polygon) {

private void loadSingle(String code, double resolution, Transform startingFrame, String encapsulatingLayer,
Color c) {
if(encapsulatingLayer==null)
throw new RuntimeException("Layer Name can not be null");
// println code
BezierPath path = new BezierPath();
path.parsePathString(code);
Expand Down

0 comments on commit 021a957

Please sign in to comment.