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

Commit 36c37a02 authored by Jim Miller's avatar Jim Miller
Browse files

Fix crash caused by null owner info

Fixes bug 7249550

Change-Id: I35a46bf03e9d11311e2f7d7d55e25bbc93687f83
parent e00d33cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ class KeyguardStatusViewManager {
                Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, 1, UserHandle.USER_CURRENT) != 0;
        String text = Settings.Secure.getStringForUser(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO,
                UserHandle.USER_CURRENT);
        text = text.trim(); // Remove trailing newlines
        text = text != null ? text.trim() : null; // Remove trailing newlines
        if (ownerInfoEnabled && !TextUtils.isEmpty(text)) {
            maybeSetUpperCaseText(mOwnerInfoView, text);
            mOwnerInfoView.setVisibility(View.VISIBLE);