Skip to content

Commit 5ebce32

Browse files
author
Federico Fissore
committed
Libraries: if missing header files, including a library doesn't generate empty lines. Fixes #3374
1 parent 6558afa commit 5ebce32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/processing/app/Sketch.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,9 @@ public void importLibrary(File jarPath) throws IOException {
944944
ensureExistence();
945945

946946
String list[] = Base.headerListFromIncludePath(jarPath);
947+
if (list == null || list.length == 0) {
948+
return;
949+
}
947950

948951
// import statements into the main sketch file (code[0])
949952
// if the current code is a .java file, insert into current

0 commit comments

Comments
 (0)