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

Commit 4d325bf9 authored by Raff Tsai's avatar Raff Tsai Committed by Wang Han
Browse files

Prevent null point exception

Test: Settings -> click search bar, not seeing null point exception
Change-Id: Ib9df9d97b374246fa36c79f531760b57d7c6c508
parent 8ae91679
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ public class VideoPreferenceController extends BasePreferenceController implemen

    @Override
    public int getAvailabilityStatus() {
        return mVideoPreference.isAnimationAvailable() ?
        return mVideoPreference != null && mVideoPreference.isAnimationAvailable() ?
                AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE;
    }