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

Issue 1418513002: Check that AnalysisContext is not null. (Closed)

Created:
5 years, 2 months ago by scheglov
Modified:
5 years, 2 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Check that AnalysisContext is not null. I guess this happens when a "resolved" CompilationUnit is not actially resolved. I don't know why we get such units, but I saw this situation twice in IDEA. So, probably we need to fix at least throwing NPE here. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/5f71b2e7cd3137fe4e8b7b58bb04b8c1f32129bf

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M pkg/analysis_server/lib/src/services/index/store/split_store.dart View 1 chunk +1 line, -1 line 2 comments Download
M pkg/analysis_server/test/services/index/store/split_store_test.dart View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
5 years, 2 months ago (2015-10-19 19:50:13 UTC) #1
Brian Wilkerson
LGTM, but with a serious caveat. https://codereview.chromium.org/1418513002/diff/1/pkg/analysis_server/lib/src/services/index/store/split_store.dart File pkg/analysis_server/lib/src/services/index/store/split_store.dart (right): https://codereview.chromium.org/1418513002/diff/1/pkg/analysis_server/lib/src/services/index/store/split_store.dart#newcode816 pkg/analysis_server/lib/src/services/index/store/split_store.dart:816: if (context == ...
5 years, 2 months ago (2015-10-19 19:57:04 UTC) #2
scheglov
https://codereview.chromium.org/1418513002/diff/1/pkg/analysis_server/lib/src/services/index/store/split_store.dart File pkg/analysis_server/lib/src/services/index/store/split_store.dart (right): https://codereview.chromium.org/1418513002/diff/1/pkg/analysis_server/lib/src/services/index/store/split_store.dart#newcode816 pkg/analysis_server/lib/src/services/index/store/split_store.dart:816: if (context == null || context.isDisposed) { On 2015/10/19 ...
5 years, 2 months ago (2015-10-19 20:25:46 UTC) #3
scheglov
5 years, 2 months ago (2015-10-19 20:27:56 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
5f71b2e7cd3137fe4e8b7b58bb04b8c1f32129bf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698