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:
parent
6558afa21d
commit
5ebce32ea2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user