Libraries: if missing header files, including a library doesn't generate empty lines. Fixes #3374

This commit is contained in:
Federico Fissore 2015-06-22 09:19:43 +02:00
parent 6558afa21d
commit 5ebce32ea2
1 changed files with 3 additions and 0 deletions

View File

@ -944,6 +944,9 @@ public class Sketch {
ensureExistence();
String list[] = Base.headerListFromIncludePath(jarPath);
if (list == null || list.length == 0) {
return;
}
// import statements into the main sketch file (code[0])
// if the current code is a .java file, insert into current