Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(373)

Unified Diff: pkg/analysis_server/lib/src/services/completion/arglist_contributor.dart

Issue 1069813002: fix NSMError in completion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/arglist_contributor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/completion/arglist_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/arglist_contributor.dart b/pkg/analysis_server/lib/src/services/completion/arglist_contributor.dart
index 76f2bff5a51a45bc3a2b238ce3f6115cf4f31fc2..08f394b137e0ec39fb399034b1c02b64fb8f2ce2 100644
--- a/pkg/analysis_server/lib/src/services/completion/arglist_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/completion/arglist_contributor.dart
@@ -154,7 +154,7 @@ class _LocalDeclarationFinder extends LocalDeclarationVisitor {
VariableDeclarationList varList, VariableDeclaration varDecl) {}
void _addArgListSuggestion(FormalParameterList parameters) {
- if (parameters.parameters.length == 0) {
+ if (parameters == null || parameters.parameters.length == 0) {
return;
}
StringBuffer completion = new StringBuffer('(');
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/arglist_contributor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698