Skip to content
Snippets Groups Projects
Commit ddd00cd2 authored by Jean Chalard's avatar Jean Chalard Committed by Automerger Merge Worker
Browse files

Merge "Remove an NPE in tearDown" into main am: e7b7ceb7

parents a9807809 e7b7ceb7
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment