Skip to content

Commit

Permalink
Fixed issue #1043.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsschmidt1337 committed Jun 7, 2024
1 parent 05a77ca commit 31f2c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/nschmidt/ldparteditor/text/Stl2Dat.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static String convertStlToDatFile(String path, UserSettingState userSetti

try (UTF8BufferedReader reader = new UTF8BufferedReader(path)) {
String firstLine = reader.readLine();
if (firstLine.startsWith("solid ")) { //$NON-NLS-1$
if (firstLine != null && firstLine.startsWith("solid ")) { //$NON-NLS-1$
readAsciiStlFile(result, reader);
} else {
readBinaryStl = true;
Expand Down

0 comments on commit 31f2c1e

Please sign in to comment.