Hi,
A NullReferenceException is trigging when trying to load a basic instance of the scheduler, particularly when SfScheduler<TValue>.OnPropertyChangeHandler().MoveNext is called. Code reference and error log below. This has happened with 18.4.0.32, 18.4.0.31, 18.4.0.30, and 18.3.0.53.
**.razor file**
@page "/"
@page "/admin/calendar"
@using Syncfusion.Blazor.Schedule
@using Syncfusion.Blazor.DropDowns
@using Microsoft.AspNetCore.Components.Authorization
@if (!string.IsNullOrEmpty(error))
{
<p>@error</p>
}
<AuthorizeView>
<div id="schedule-container">
<SfSchedule Width="100%" Height="100%" TValue="ShiftReadEditDto" CurrentView="currentView">
</SfSchedule>
</div>
</AuthorizeView>
**event class**
using System;
using HRManager.Common.Services;
namespace HRManager.Common.Dtos
{
public class ShiftReadEditDto
{
public int Id { get; set; }
public string Subject { get; set; }
[DateLessThan("EndTime")]
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public int PositionId { get; set; }
public int MemberProfileId { get; set; }
public Position Position { get; set; }
public MemberMinimalDto Member { get; set; }
public string Description { get; set; }
public bool IsRecurrence { get; set; }
public bool IsAllDay { get; set; }
public string RecurrenceRule { get; set; }
public string RecurrenceException { get; set; }
public int? RecurrenceID { get; set; }
public bool IsBlock { get; set; }
}
}
**error log**
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Syncfusion.Blazor
StackTrace:
at Syncfusion.Blazor.Schedule.SfSchedule`1.<OnPropertyChangeHandler>d__162.MoveNext()