From 47a6e656a9e7381f2399578dfebe89fa6426494f Mon Sep 17 00:00:00 2001 From: Nils Schmidt Date: Fri, 16 Aug 2024 18:25:17 +0200 Subject: [PATCH] Fixed issue #1039. --- src/org/nschmidt/ldparteditor/text/PrimitiveReplacer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/nschmidt/ldparteditor/text/PrimitiveReplacer.java b/src/org/nschmidt/ldparteditor/text/PrimitiveReplacer.java index 769871f06..865d2370a 100644 --- a/src/org/nschmidt/ldparteditor/text/PrimitiveReplacer.java +++ b/src/org/nschmidt/ldparteditor/text/PrimitiveReplacer.java @@ -283,7 +283,7 @@ private static List substitutePrimitivesTori(String name, List l } final int length = toriName.length(); - if (length == 8 && validToriName(toriName)) { + if (length == 8 && validToriName(toriName) && lines != null) { try { double major = 1; double minor = 1;