Unhandled Exception: Java.Lang.NullPointerException:

some1some1 Member ✭✭✭
edited March 28 in Xamarin.Android

Getting this Exception when i click a picker, please help to find out the problem

`Unhandled Exception:

Java.Lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference occurred`

Answers

  • DeepakDYDeepakDY INMember ✭✭✭

    @DoraBhuji
    Show your picker code

  • some1some1 Member ✭✭✭

    @DeepakDY said:
    @DoraBhuji
    Show your picker code

    thank you so much for replaying .

    i have resolved the problem.
    This occured because one of item in picker is null.

  • teapengteapeng USMember ✭✭

    For my case was because I forget to add { get; set; } on my object properties. Duh!

Sign In or Register to comment.