Index: tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
index ddb6fdc80503a52a2dcae85294bc1813a0fc343f..423c054085fb7047d07ba6da5fd88379c11ba42a 100644 |
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart |
@@ -307,7 +307,9 @@ List<CodeLine> convertAnnotatedCodeToCodeLines( |
void addAnnotations(List<Annotation> annotations) { |
currentAnnotations.addAll(annotations); |
- currentLine.annotations.addAll(annotations); |
+ if (currentLine != null) { |
+ currentLine.annotations.addAll(annotations); |
+ } |
} |
void beginLine(int currentOffset) { |