Index: pkg/analyzer/lib/src/generated/resolver.dart |
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart |
index f8b90e975fecff7fdaa6bf9b8b1700a35bdb3f41..b6edb9539102dc300e09d9ac2220992865aa3225 100644 |
--- a/pkg/analyzer/lib/src/generated/resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/resolver.dart |
@@ -264,6 +264,10 @@ class AngularCompilationUnitBuilder { |
// process annotations |
NodeList<Annotation> annotations = _classDeclaration.metadata; |
for (Annotation annotation in annotations) { |
+ // verify annotation |
+ if (annotation.arguments == null) { |
+ continue; |
+ } |
this._annotation = annotation; |
// @NgFilter |
if (isAngularAnnotation2(_NG_FILTER)) { |