Hi,
I've got a nullpointer exception in AppointmentItem.EnsureSelection method. The occurrenceInfo is null.
void EnsureSelected()
{
if (!this.IsSelected)
{
this.ScheduleView.UpdateSelectionOnMouseButton(this.occurrenceInfo.Occurrence, this.ActualRange, false, true, true, false);
}
}
In the mouse handlers the occurrenceInfo is checked against being null:
private void AppointmentItemMouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
if (this.ScheduleView != null && this.occurrenceInfo != null)
{
this.ScheduleView.UpdateSelectionOnMouseButton(this.occurrenceInfo.Occurrence, this.ActualRange, false, false);
e.Handled = true;
}
}
private void AppointmentItemMouseRightButtonUp(object sender, MouseButtonEventArgs e)
{
if (this.ScheduleView != null && this.occurrenceInfo != null)
{
this.ScheduleView.UpdateSelectionOnMouseButton(this.occurrenceInfo.Occurrence, this.ActualRange, false, true);
e.Handled = false;
}
}
Could you fix this?
Thx,
Nico
I've got a nullpointer exception in AppointmentItem.EnsureSelection method. The occurrenceInfo is null.
void EnsureSelected()
{
if (!this.IsSelected)
{
this.ScheduleView.UpdateSelectionOnMouseButton(this.occurrenceInfo.Occurrence, this.ActualRange, false, true, true, false);
}
}
In the mouse handlers the occurrenceInfo is checked against being null:
private void AppointmentItemMouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
if (this.ScheduleView != null && this.occurrenceInfo != null)
{
this.ScheduleView.UpdateSelectionOnMouseButton(this.occurrenceInfo.Occurrence, this.ActualRange, false, false);
e.Handled = true;
}
}
private void AppointmentItemMouseRightButtonUp(object sender, MouseButtonEventArgs e)
{
if (this.ScheduleView != null && this.occurrenceInfo != null)
{
this.ScheduleView.UpdateSelectionOnMouseButton(this.occurrenceInfo.Occurrence, this.ActualRange, false, true);
e.Handled = false;
}
}
Could you fix this?
Thx,
Nico