Null Ref Exception

3 posts, 0 answers
  1. john
    john avatar
    19 posts
    Member since:
    Jan 2017

    Posted 19 Jan 2018 Link to this post

    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. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 22 Jan 2018 Link to this post

    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
  3. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 22 Jan 2018 Link to this post

    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
Back to Top