Prevent NPE

This commit is contained in:
M66B 2022-10-21 10:38:45 +02:00
parent aabde2a61c
commit f65f033a5e
1 changed files with 3 additions and 0 deletions

View File

@ -1440,6 +1440,9 @@ public class Helper {
}
static void reportNoViewer(Context context, @NonNull Intent intent, @Nullable Throwable ex) {
if (context == null)
return;
if (ex != null) {
if (ex instanceof ActivityNotFoundException && BuildConfig.PLAY_STORE_RELEASE)
Log.w(ex);