You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Null reference exception in view.android.onUnloaded #8153
this.nativeViewProtected.setOnTouchListener(null); would throw if nativeViewProtected is null. this.nativeViewProtected.setClickable(this._isClickable); would throw if nativeViewProtected is null.
@hamidbsd Are you using a specific component/layout or something from the core modules? Please consider creating a demo project or Playground that demonstrates your scenario. In the context of all core modules, there should be a valid native view reference when this code is called.
@hamidbsd I saw the discussion that you had with @farfromrefug and it sounds legit. Marking the issue with good-first-issue as the fix sounds like a one-liner (adding a null check).
Activity
NickIliev commentedon Dec 2, 2019
@hamidbsd Are you using a specific component/layout or something from the core modules? Please consider creating a demo project or Playground that demonstrates your scenario. In the context of all core modules, there should be a valid native view reference when this code is called.
hamidbsd commentedon Dec 2, 2019
@NickIliev I am using nativescript-material-bottomsheet plugin and this is where @farfromrefug thinks the bug is.
Please see this: #8038
I happens when there are active button(s) on the bottomsheet and it gets dismissed.
Simple project to reproduce:
https://www.dropbox.com/s/m1weedpegpo0rlv/Bottomsheet%20crashing.zip?dl=0
NickIliev commentedon Dec 2, 2019
@hamidbsd I saw the discussion that you had with @farfromrefug and it sounds legit. Marking the issue with
good-first-issueas the fix sounds like a one-liner (adding a null check).