From 6c2b8d9b616a5998c387f417096e754e52d54037 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 3 May 2021 16:07:59 -0700 Subject: [PATCH] Fix a crash in About > Version on some tablets. https://redmine.stoutner.com/issues/701 --- .../stoutner/privacybrowser/fragments/AboutVersionFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.45.2