Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[iOS] Possible race condition when setting Switch background color #10101

Open
@fpaaske

Description

@fpaaske

Issue Description

We experience a null pointer exception in our app, and it seems to be related to Switch and background color.
It looks suspiciously similar to this NativeScript/nativescript-angular#2134 and #9922, but for iOS.

Reproduction

I'm unable to reliably reproduce this.

Relevant log output (if applicable)

TypeError: Cannot set property 'onTintColor' of null
at Switch.setNativeBackgroundColor
at Switch._onCheckedPropertyChanged
at onCheckedPropertyChanged
at Switch.checked
at ViewUtil.setPropertyInternal
at ViewUtil.setProperty
at EmulatedRenderer.setProperty
at ZoneDelegate.invoke
at Zone.run

Environment

No response

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions