Skip to content

_onNavigatingTo TypeError: Cannot read property 'resolvedPage' of undefined #9204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hiperbou opened this issue Feb 9, 2021 · 0 comments

Comments

@hiperbou
Copy link

hiperbou commented Feb 9, 2021

Environment
tns-core-modules has 6.5.25
tns-android has 6.5.3

Describe the bug
Runtime exception due to unchecked null.
Somehow the variable "backstackEntry" is null at this point:

this._onNavigatingTo(backstackEntry, true);

Most likely because backstack[backstack.length - 1] returns undefined here because the length is 0:

backstackEntry = backstack[backstack.length - 1];

To Reproduce
Unknown, it's happening to users in production. Maybe trying to go back repeatedly?

Additional context

com.tns.NativeScriptException: Calling js method run failed
TypeError: Cannot read property 'resolvedPage' of undefined
t._onNavigatingTo(:37:1212954)
t.performGoBack(:37:1212451)
t._processNextNavigationEntry(:37:1212100)
t._processNextNavigationEntry(:37:107712)
t._processNavigationQueue(:37:1211284)
t.setCurrent(:37:109498)
(:37:2105307)
(:37:1207022)
run(:37:1207081)
com.tns.Runtime.callJSMethodNative(Native Method)
com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1286)
com.tns.Runtime.callJSMethodImpl(Runtime.java:1173)
com.tns.Runtime.callJSMethod(Runtime.java:1160)
com.tns.Runtime.callJSMethod(Runtime.java:1138)
com.tns.Runtime.callJSMethod(Runtime.java:1134)
com.tns.gen.java.lang.Runnable.run(Runnable.java:17)
android.os.Handler.handleCallback(Handler.java:789)
android.os.Handler.dispatchMessage(Handler.java:98)
android.os.Looper.loop(Looper.java:164)
android.app.ActivityThread.main(ActivityThread.java:6944)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants