Merge "Remove an NPE in tearDown" into main
This commit is contained in:
commit
e7b7ceb70d
1 changed files with 2 additions and 1 deletions
|
|
@ -198,7 +198,8 @@ public abstract class AbstractRestrictBackgroundNetworkTestCase {
|
|||
protected void tearDown() throws Exception {
|
||||
executeShellCommand("cmd netpolicy stop-watching");
|
||||
mServiceClient.unbind();
|
||||
if (mLock.isHeld()) mLock.release();
|
||||
final PowerManager.WakeLock lock = mLock;
|
||||
if (null != lock && lock.isHeld()) lock.release();
|
||||
}
|
||||
|
||||
protected int getUid(String packageName) throws Exception {
|
||||
|
|
|
|||
Loading…
Reference in a new issue