[MediaProjection] Fix NPE introduced from deadlock fix

Bug: 293133367
Test: Manual
Change-Id: I9c21acf069c66f1ade22c49b095ad5339fe13eca
This commit is contained in:
Naomi Musgrave
2023-07-27 12:08:15 +01:00
parent 8228c296e8
commit e871b1f611

View File

@@ -260,7 +260,9 @@ public final class MediaProjectionManagerService extends SystemService
}
synchronized (mLock) {
mProjectionGrant.stop();
if (mProjectionGrant != null) {
mProjectionGrant.stop();
}
}
}