| Index: compiler/java/com/google/dart/compiler/common/SourceInfo.java
|
| diff --git a/compiler/java/com/google/dart/compiler/common/SourceInfo.java b/compiler/java/com/google/dart/compiler/common/SourceInfo.java
|
| index 44ead65065e7f2f85404a450561eafce957ba926..0ae843a1f10b3e6c1304e6749be820afda397548 100644
|
| --- a/compiler/java/com/google/dart/compiler/common/SourceInfo.java
|
| +++ b/compiler/java/com/google/dart/compiler/common/SourceInfo.java
|
| @@ -161,6 +161,9 @@ public final class SourceInfo implements Serializable {
|
| }
|
|
|
| int getLineOffset(int line) {
|
| + if (line < 0) {
|
| + return 0;
|
| + }
|
| return lineOffsets.get(line);
|
| }
|
|
|
|
|