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

Null exception in iOS, class IS.Toolkit.XamarinForms.Controls.BorderlessEntryRenderer #54

Open
patrinks opened this issue May 22, 2020 · 0 comments

Comments

@patrinks
Copy link

patrinks commented May 22, 2020

In some situations, the Control property is null.
This condition is handled in Android renderer, but not in iOS renderer.

I propose an if in line 16:

if (Control != null) {
   Control.Layer.BorderWidth = 0;
   Control.BorderStyle = UITextBorderStyle.None;
}

Error

at IS.Toolkit.XamarinForms.Controls.BorderlessEntryRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00008] in C:\Users\JeromeGIACOMINI\source\repos\IS.Toolkit.XamarinForms\src\Controls\TextBox\BorderLessEntryRenderer.ios.cs:16
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