1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00

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

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