Forum Xamarin.Forms

TimePicker throw System.NullReferenceException

GuiWaltrickeGuiWaltricke BRMember ✭✭
edited December 2016 in Xamarin.Forms

Hello everyone,

When you click in OK in the TimerPicker Popup in Android throws:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

this is only on Android... iOS works great.

<TimePicker HorizontalOptions="Start" VerticalOptions="Center" Time="{Binding EventoAgenda.HoraFinal}"/>

public class EventoAgendaModel: Identificador
    {


        private TimeSpan _horaFinal;
        public TimeSpan HoraFinal
        {
            get { return _horaFinal; }
            set
            {
                _horaFinal = value;
                OnPropertyChanged();
            }
        }
    }

Anybody knows about that?

Tagged:

Best Answer

Answers

Sign In or Register to comment.