Fixed DefineShape4 SVG import NullPointerException

This commit is contained in:
Jindra Petřík
2022-11-18 20:09:03 +01:00
parent 03ddda8e19
commit 337ebb2991

View File

@@ -365,7 +365,9 @@ public class SvgImporter {
LINESTYLE2 lineStyle2Obj = null;
if (shapeNum == 4) {
lineStyle2Obj = scrStyle.lineStyles.lineStyles2.length < 1 ? null : scrStyle.lineStyles.lineStyles2[0];
lineStyle2Obj.noClose = true;
if (lineStyle2Obj != null) {
lineStyle2Obj.noClose = true;
}
}
for (PathCommand command : commands) {