Prevent crash

This commit is contained in:
M66B 2020-10-30 11:59:28 +01:00
parent 16b9b1582a
commit 1db59c34ac
1 changed files with 5 additions and 4 deletions

View File

@ -570,6 +570,11 @@ public class Helper {
}
static void view(Context context, Uri uri, boolean browse, boolean task) {
if (context == null) {
Log.e(new Throwable("view"));
return;
}
boolean has = hasCustomTabs(context, uri);
Log.i("View=" + uri + " browse=" + browse + " task=" + task + " has=" + has);
@ -634,10 +639,6 @@ public class Helper {
}
static void viewFAQ(Context context, int question) {
if (context == null) {
Log.e(new Throwable("FAQ"));
return;
}
if (question == 0)
view(context, Uri.parse(FAQ_URI), false);
else