Skip to content

Commit 5d56579

Browse files
committed
deal with the empty sketch case
1 parent 0385fd7 commit 5d56579

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/src/processing/mode/java/JavaBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public String preprocess(File srcFolder,
260260

261261
// Remove the entries being moved to settings(). They will be re-inserted
262262
// by writeFooter() when it emits the settings() method.
263-
if (sizeInfo != null) {
263+
if (sizeInfo != null && sizeInfo.hasSettings()) {
264264
// String sizeStatement = sizeInfo.getStatement();
265265
for (String stmt : sizeInfo.getStatements()) {
266266
// if (sizeStatement != null) {

0 commit comments

Comments
 (0)