Fix a NPE crash in the gwt compiler introduced by
Closes
@@ -180,7 +180,9 @@ public final class SourceMap {
lineNo = sourceMapping.getLineNumber();
charNo = sourceMapping.getColumnPosition();
String identifier = sourceMapping.getIdentifier();
- if (sourceMapping != null && !identifier.isEmpty()) {
+ // TODO(bradfordcsmith): When we move off of GWT we should be able
+ // to use sourceMapping.hasIdentifier() instead of a null check.
+ if (identifier != null && !identifier.isEmpty()) {
originalName = identifier;
}
}
