From ad01eca4e2e71d2f239bd2a4f17a458f2bc1ff5b Mon Sep 17 00:00:00 2001 From: "scheglov@google.com" Date: Thu, 15 Jan 2015 22:09:00 +0000 Subject: [PATCH] Fix NPE in tests. TBR R=brianwilkerson@google.com BUG= Review URL: https://codereview.chromium.org//846383004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42937 260f80e4-7a28-3924-810f-c04153c831b5 --- pkg/analysis_server/test/analysis_server_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/analysis_server/test/analysis_server_test.dart b/pkg/analysis_server/test/analysis_server_test.dart index 7eb7e6afad8..528324a53ff 100644 --- a/pkg/analysis_server/test/analysis_server_test.dart +++ b/pkg/analysis_server/test/analysis_server_test.dart @@ -284,6 +284,7 @@ import "../foo/foo.dart"; notice.setErrors([], new LineInfo([0])); AnalysisResult firstResult = new AnalysisResult([notice], 0, '', 0); AnalysisResult lastResult = new AnalysisResult(null, 1, '', 1); + when(context.analysisOptions).thenReturn(new AnalysisOptionsImpl()); when( context.performAnalysisTask).thenReturnList( [firstResult, firstResult, firstResult, lastResult]);