mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:07:06 +00:00
Fix NPE when there is no keyword (issue 26630)
R=scheglov@google.com Review URL: https://codereview.chromium.org/2050463002 .
This commit is contained in:
parent
61a2bb4fdc
commit
4b6d9fdf39
|
@ -338,7 +338,7 @@ class AssistProcessor {
|
|||
}
|
||||
// add edit
|
||||
Token keyword = declarationList.keyword;
|
||||
if (keyword.keyword == Keyword.VAR) {
|
||||
if (keyword?.keyword == Keyword.VAR) {
|
||||
SourceRange range = rangeToken(keyword);
|
||||
_addReplaceEdit(range, typeSource);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue