Skip to content

Null reference exception in view.android.onUnloaded #8153

@hamidbsd

Description

@hamidbsd

public onUnloaded() {
if (this.touchListenerIsSet) {
this.nativeViewProtected.setOnTouchListener(null);
this.touchListenerIsSet = false;
this.nativeViewProtected.setClickable(this._isClickable);
}

this.nativeViewProtected.setOnTouchListener(null); would throw if nativeViewProtected is null.
this.nativeViewProtected.setClickable(this._isClickable); would throw if nativeViewProtected is null.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions