| commit | 2c74e764be76b31ddf3e875ff8b7c29761b7f04e | [log] [tgz] |
|---|---|---|
| author | Ytai Ben-Tsvi <ytai@google.com> | Mon Mar 21 15:10:04 2022 -0700 |
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 23 17:44:56 2022 +0000 |
| tree | d41b70fc0a30693bfe583ea731f47169da76fe53 | |
| parent | ad0ac15169aeb3604106032ef85c4bcb8fbfe642 [diff] |
Check for null callback
The modelData callback may be nullified before actually being invoked,
e.g. when calling startRecognition() on an already running model, with
a different callback.
Fixes: 225768984
Test: Manual reproduction on the issue and then applying the fix and
verifying that it works.
Change-Id: I089061123c8cf12eef19fdf16bb3a2c106ea2438
(cherry picked from commit d2185bf42cfc567ccdda9b7bb3cc640afbfbd7b2)
Merged-In: I089061123c8cf12eef19fdf16bb3a2c106ea2438