This is a migrated thread and some comments may be shown as answers.

Null Ref Exception

2 Answers 109 Views
Entry
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 19 Jan 2018, 03:12 PM

I have added the libraries and registered the renderers and I'm getting the following:

 

System.NullReferenceException: Object reference not set to an instance of an object.
01-19 15:09:06.862 I/MonoDroid(25034):   at Telerik.XamarinForms.InputRenderer.Android.EntryAdapter.UpdateText

2 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 22 Jan 2018, 12:35 PM
Hello, John,

I was not able to reproduce the behavior when creating a brand new project. Can you share more information? I have attached a sample for your reference - can you test with it?

Have a great week.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Stefan Nenchev
Telerik team
answered on 22 Jan 2018, 12:57 PM
Hi, John,

Actually, I have managed to reproduce the behavior by explicitly setting the Text property to null. I guess this is what you are doing at your end. I have logged the behavior as a bug in our system - RadEntry: Setting the Text to null results in exception. You can subscribe to it by following it in order to receive automatic notifications. I have also added some points to your account for reporting the behavior.

In the meantime, if you would like to clear the value of the Text, you can try setting it to String.Empty:

this.entry.Text = String.Empty;

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Entry
Asked by
john
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or