Skip to content

Crash on permissions #27810

Closed
brave/brave-core
#16681
@SergeyZhukovsky

Description

That crash was found on a beta channel in GPS on 1.48.x. It fails in that place https://github.com/brave/brave-core/blob/1.48.x/android/java/org/chromium/chrome/browser/notifications/BravePermissionUtils.java#L65

Stack trace:

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5312)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5351)
  at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:54)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2443)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:226)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8751)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1135)
Caused by java.lang.NullPointerException:
  at org.chromium.chrome.browser.notifications.BravePermissionUtils$$InternalSyntheticApiModelOutline$1$97647a16c2480f825cde2f80caf8099a7aa3d4d58a19b9135fc14c5c280b4be9$1.m (BravePermissionUtils.java:1)
  at org.chromium.chrome.browser.notifications.BravePermissionUtils.channeGroupIsBlocked (BravePermissionUtils.java:65)
  at org.chromium.chrome.browser.notifications.BravePermissionUtils.isBraveAdsNotificationPermissionBlocked (BravePermissionUtils.java:72)
  at org.chromium.chrome.browser.notifications.BraveNotificationWarningDialog.shouldShowRewardWarningDialog (BraveNotificationWarningDialog.java:94)
  at org.chromium.chrome.browser.notifications.BraveNotificationWarningDialog.shouldShowNotificationWarningDialog (BraveNotificationWarningDialog.java:86)
  at org.chromium.chrome.browser.app.BraveActivity.checkAndshowNotificationWarningDialog (BraveActivity.java:1334)
  at org.chromium.chrome.browser.app.BraveActivity.onNewIntent (BraveActivity.java:1716)
  at org.chromium.chrome.browser.ChromeTabbedActivity.onNewIntent (ChromeTabbedActivity.java:971)
  at android.app.Activity.performNewIntent (Activity.java:8306)
  at android.app.Instrumentation.callActivityOnNewIntent (Instrumentation.java:1429)
  at android.app.Instrumentation.callActivityOnNewIntent (Instrumentation.java:1442)
  at android.app.ActivityThread.deliverNewIntents (ActivityThread.java:4317)
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5275)

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions