| Index: compiler/java/com/google/dart/compiler/ast/DartBlock.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/ast/DartBlock.java (revision 14360)
|
| +++ compiler/java/com/google/dart/compiler/ast/DartBlock.java (working copy)
|
| @@ -14,7 +14,9 @@
|
| private final NodeList<DartStatement> statements = NodeList.create(this);
|
|
|
| public DartBlock(List<DartStatement> statements) {
|
| - this.statements.addAll(statements);
|
| + if (statements != null && !statements.isEmpty()) {
|
| + this.statements.addAll(statements);
|
| + }
|
| }
|
|
|
| public List<DartStatement> getStatements() {
|
|
|