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

Commit 2ef0d3bf authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

Merge "fix possible NPE in DebugSettings"

parents d9c7a6b9 e8b4fd26
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -107,6 +107,9 @@ public final class DebugSettings extends PreferenceFragment
        String version = "";
        try {
            final Context context = getActivity();
            if (context == null) {
                return;
            }
            final String packageName = context.getPackageName();
            PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0);
            version = "Version " + info.versionName;