-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug]Tabs Tray context menu: kotlin.KotlinNullPointerException crash #12424
Comments
It looks like there are a few issues at play here:
cc @pocmo for thoughts here |
Moved this into the AC sprint to investigate today. |
(Also: I didn't know that you can long-press the tabs counter, that is cool!) |
One difference with the new implementation is that we may see a call to |
Yeah, when that crash happens protected val browserToolbarView: BrowserToolbarView
get() = _browserToolbarView!! (Which may be better expressed as Normally that wouldn't be a problem since All of this is happening because One way to mitigate this would be to not invoke the callbacks for the initial state ("We are not in fullscreen mode!") from |
Okay, I have a patch for this now and will open a PR in AC. However this seems to have uncovered a different problem, that I think is unrelated and probably in Fenix: Using the STR above I end up in the "url input" screen, but the original tab (that I restored with "undo") is no longer around? 🤔 - I'll file a separate issue for that. |
This should be fixed in Nightly now. |
Hi, verified as fixed, no crash, with Samsung Galaxy S9 (Android 8) and Google Pixel 3 XL (Android 9) on latest Nightly 07/22 Note:
Should a new ticket be created for this? |
We have an issue for that, thank you! #11955 |
Prerequisites
Don't have any open tabs
Steps to reproduce
Expected behavior
A new tab should be opened
Actual behavior
Crash
Device information
Notes
❗ The original issue: #11515
► Video

► Crash report: https://crash-stats.mozilla.org/report/index/3dbf84ee-67c1-4a33-88e3-c31840200709
kotlin.KotlinNullPointerException
* Sentry: https://sentry.prod.mozaws.net/operations/fenix-nightly/?query=22cd1a2727a44ee1b4f587541e87139f
kotlin.KotlinNullPointerException
at kotlin.jvm.internal.ArrayIteratorKt.throwNpe(ArrayIterator.kt:1)
at org.mozilla.fenix.browser.BaseBrowserFragment.getBrowserToolbarView(BaseBrowserFragment.kt:1)
at org.mozilla.fenix.browser.BaseBrowserFragment.fullScreenChanged(BaseBrowserFragment.kt:24)
at org.mozilla.fenix.browser.BaseBrowserFragment.access$fullScreenChanged(BaseBrowserFragment.kt:1)
at org.mozilla.fenix.browser.BaseBrowserFragment$initializeUI$2$14.invoke(BaseBrowserFragment.kt:3)
at mozilla.components.feature.session.FullScreenFeature.onChange(FullScreenFeature.kt:2)
at mozilla.components.feature.session.FullScreenFeature.access$onChange(FullScreenFeature.kt:1)
at mozilla.components.feature.session.FullScreenFeature$start$1$invokeSuspend$$inlined$collect$1.emit(Collect.kt:2)
at mozilla.components.support.ktx.kotlinx.coroutines.flow.FlowKt$ifChanged$$inlined$filter$1$2.emit(Collect.kt:7)
at mozilla.components.feature.session.FullScreenFeature$start$1$invokeSuspend$$inlined$map$2$2.emit(Collect.kt:4)
at mozilla.components.feature.session.FullScreenFeature$start$1$invokeSuspend$$inlined$map$1$2.emit(Collect.kt:3)
at kotlinx.coroutines.flow.FlowKt.emitAllImpl$FlowKt__ChannelsKt(Unknown Source)
at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Channels.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:21)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:152)
at android.app.ActivityThread.main(ActivityThread.java:5507)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: