From: Soren Stoutner Date: Mon, 3 May 2021 23:07:59 +0000 (-0700) Subject: Fix a crash in About > Version on some tablets. https://redmine.stoutner.com/issues/701 X-Git-Tag: v3.8~6 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=6c2b8d9b616a5998c387f417096e754e52d54037;p=PrivacyBrowserAndroid.git Fix a crash in About > Version on some tablets. https://redmine.stoutner.com/issues/701 --- diff --git a/app/src/main/java/com/stoutner/privacybrowser/fragments/AboutVersionFragment.java b/app/src/main/java/com/stoutner/privacybrowser/fragments/AboutVersionFragment.java index f1f99c8e..18062c24 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/fragments/AboutVersionFragment.java +++ b/app/src/main/java/com/stoutner/privacybrowser/fragments/AboutVersionFragment.java @@ -356,7 +356,7 @@ public class AboutVersionFragment extends Fragment { ultraPrivacyTextView.setText(ultraPrivacyStringBuilder); // Only populate the radio text view if there is a radio in the device. - if (!radio.isEmpty()) { + if ((radio != null) && !radio.isEmpty()) { String radioLabel = getString(R.string.radio) + " "; SpannableStringBuilder radioStringBuilder = new SpannableStringBuilder(radioLabel + radio); radioStringBuilder.setSpan(blueColorSpan, radioLabel.length(), radioStringBuilder.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);