deal with the empty sketch case

This commit is contained in:
Ben Fry
2015-08-05 08:40:18 -04:00
parent 98a5650fc3
commit 5fd17acde6

View File

@@ -260,7 +260,7 @@ public class JavaBuild {
// Remove the entries being moved to settings(). They will be re-inserted
// by writeFooter() when it emits the settings() method.
if (sizeInfo != null) {
if (sizeInfo != null && sizeInfo.hasSettings()) {
// String sizeStatement = sizeInfo.getStatement();
for (String stmt : sizeInfo.getStatements()) {
// if (sizeStatement != null) {