Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94df6176 authored by Matt Pietal's avatar Matt Pietal
Browse files

Add NPE check around live data

Fixes: 385386678
Test: manual
Flag: EXEMPT bugfix
Change-Id: I85d868fb0d6588af16355e2fe097161699c39123
parent d08c5650
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ public class KeyguardSliceViewController extends ViewController<KeyguardSliceVie
    @Override
    protected void onViewDetached() {
        // TODO(b/117344873) Remove below work around after this issue be fixed.
        if (mDisplayId == mDisplayTracker.getDefaultDisplayId()) {
        if (mDisplayId == mDisplayTracker.getDefaultDisplayId() && mLiveData != null) {
            mLiveData.removeObserver(mObserver);
        }
        mConfigurationController.removeCallback(mConfigurationListener);