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 'btn' of null" exception occurs randomly #12054

Closed
youssmak opened this issue Jun 15, 2017 · 1 comment
Closed

"Cannot read property 'btn' of null" exception occurs randomly #12054

youssmak opened this issue Jun 15, 2017 · 1 comment

Comments

@youssmak
Copy link

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[X] 3.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Cannot read property 'btn' of null exception occurs randomly

Expected behavior:
avoid raising this exception by checking if tab is defined

Related code:

https://github.com/ionic-team/ionic/blob/63fd63e72e8cf44767ec8ca2d6ba0e6b9f071317/src/components/tabs/tab-highlight.ts#L21

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 2, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant