| Index: compiler/java/com/google/dart/compiler/resolver/SyntheticDefaultConstructorElement.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/SyntheticDefaultConstructorElement.java b/compiler/java/com/google/dart/compiler/resolver/SyntheticDefaultConstructorElement.java
|
| index 16ba358acfdae69015a9ebb158da2869f0db8858..65e485719eb1b98a05500d027a1d6e7d1b3c17bf 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/SyntheticDefaultConstructorElement.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/SyntheticDefaultConstructorElement.java
|
| @@ -29,13 +29,17 @@ public class SyntheticDefaultConstructorElement implements ConstructorElement {
|
| CoreTypeProvider typeProvider) {
|
| this.method = method;
|
| this.enclosingClass = enclosingClass;
|
| - this.functionType =
|
| - Types.makeFunctionType(
|
| - null,
|
| - typeProvider.getFunctionType().getElement(),
|
| - getParameters(),
|
| - typeProvider.getDynamicType(),
|
| - Collections.<TypeVariable>emptyList());
|
| + if (typeProvider != null) {
|
| + this.functionType =
|
| + Types.makeFunctionType(
|
| + null,
|
| + typeProvider.getFunctionType().getElement(),
|
| + getParameters(),
|
| + typeProvider.getDynamicType(),
|
| + Collections.<TypeVariable>emptyList());
|
| + } else {
|
| + functionType = null;
|
| + }
|
| }
|
|
|
| @Override
|
|
|