summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2022-03-02 22:14:20 -0600
committer Riddle Hsu <riddlehsu@google.com> 2022-03-03 00:33:22 +0800
commitb5b32d479d44c55922e06395861c21b0ea6bd024 (patch)
tree39a037b027a32f1183e0785692a932ac05404e88 /api/api.go
parentc67b2ca345187b6f22cef58a1c964a69dadc6d3b (diff)
Fix NPE in WakeLock#finalize for unit test
The stubbed method of "mock(PowerManager.WakeLock.class)" will lose effect after clearInlineMocks. And then finalizer runs the real method finalize() that cause NPE because the mocked object didn't initialize fields. Bug: 219640050 Test: atest WmTests Change-Id: If8ee4fbc98c9e33d6ab6ba75a65ba177fa06f09c
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions