NullReferenceException deep in stack trace when trying to load scheduler

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()



1 Reply

NR Nevitha Ravi Syncfusion Team January 5, 2021 07:21 AM UTC

Hi Chase, 

Greetings from Syncfusion Support.

We have checked the reported issue at our end, but were unable to reproduce the issue with the shared code snippet. Please refer the sample in the following link. 

If you still face the issue, please share the following details. 
  • Replicate the issue in above sample.
  • Share the issue replicating sample if possible
  • Share whether you have used server or WASM project.
  • Whether you have dynamically change any property of the scheduler

Regards, 
Nevitha 


Loader.
Up arrow icon