Skip to content
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

"Cannot read property ' ' of null" Error on Android after upgrade to 5.0.1 #361

Open
madmas opened this issue May 5, 2020 · 1 comment

Comments

@madmas
Copy link
Contributor

madmas commented May 5, 2020

Hi,
after upgrading to the latest version of the plugin, I get the error below when the component showing the map is initialized.

JS: ERROR TypeError: Cannot read property ' ' of null

followed by a

JS: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'destroy' of undefined
JS: TypeError: Cannot read property 'destroy' of undefined
JS:     at MapboxView.<anonymous> (file: node_modules/nativescript-mapbox/mapbox.android.js:92:0)
JS:     at step (file: node_modules/tslib/tslib.es6.js:100:0)
JS:     at Object.next (file: node_modules/tslib/tslib.es6.js:81:44)
JS:     at file: node_modules/tslib/tslib.es6.js:74:0
JS:     at new ZoneAwarePromise (file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:902:0)
JS:     at __awaiter (file: node_modules/tslib/tslib.es6.js:70:0)
JS:     at MapboxView.push.../node_modules/nativescript-mapbox/mapbox.js.MapboxView.disposeNativeView (file: node_modules/nativescript-mapbox/mapbox.android.js:86:0)
JS:     at MapboxView.push.../node_modules/@nativescript/core/ui/core/view-base/view-base.js.ViewBase._tearDownUI (file: node_modules/@nativescript/core/ui/core/view-base/view-base.js:583:0)
JS:     at file:///data/data...

I'm using {N} 6.5 with Angular.
The error also occurs with the demo app included in the repo. But not on the first view, that loads nicely, but when I use the ToggleMapTest view, it crashes with the same error.

@madmas
Copy link
Contributor Author

madmas commented May 5, 2020

Found the reason for the error, still have to get the map showing again, yet.

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

No branches or pull requests

1 participant