Skip to content

Commit 4ceea6b

Browse files
authored
Elements. element.lookupName can be null, use empty string then. (#4062)
Found during https://dart-review.googlesource.com/c/sdk/+/432125
1 parent c35577c commit 4ceea6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/model/model_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ abstract class ModelElement
734734
_parameterRenderer.renderLinkedParams(parameters, showMetadata: false);
735735

736736
@override
737-
String get name => element.lookupName!;
737+
String get name => element.lookupName ?? '';
738738

739739
@override
740740
String get oneLineDoc => elementDocumentation.asOneLiner;

0 commit comments

Comments
 (0)