mirror of
https://github.com/dart-lang/sdk
synced 2024-07-20 18:05:01 +00:00
[CFE] Check 'instrumentation != null' before doing other calls
Change-Id: I81f562824b8011d5a99e334daeeede36e6650b03 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/298560 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
parent
43b499cf9a
commit
ad87701920
|
@ -1373,7 +1373,8 @@ abstract class InferenceVisitorBase implements InferenceVisitor {
|
|||
|
||||
ObjectAccessTarget target =
|
||||
objectAccessDescriptor.findNonExtensionTarget(this);
|
||||
if (instrumented &&
|
||||
if (instrumentation != null &&
|
||||
instrumented &&
|
||||
receiverBound != const DynamicType() &&
|
||||
(target.isInstanceMember || target.isObjectMember)) {
|
||||
instrumentation?.record(uriForInstrumentation, fileOffset, 'target',
|
||||
|
|
Loading…
Reference in a new issue