| Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (revision 8609)
|
| +++ compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (working copy)
|
| @@ -601,6 +601,9 @@
|
| private class VariableElementsRestorer {
|
| private final Map<VariableElement, Type> typesMap = Maps.newHashMap();
|
| void setType(VariableElement element, Type inferredType) {
|
| + if (element == null) {
|
| + return;
|
| + }
|
| Type currentType = element.getType();
|
| // remember original if not yet
|
| if (!typesMap.containsKey(element)) {
|
|
|