Null reference creating a folder in TelerikFileManager

1 Answer 73 Views
FileManager
Christopher
Top achievements
Rank 1
Iron
Christopher asked on 28 Nov 2023, 07:20 PM

I'm getting the following error:

Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
      Unhandled exception rendering component: Object reference not set to an instance of an object.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at Telerik.Blazor.Components.TelerikFileManager`1.ConvertToFileEntry(Object dataItem)

After I click the create folder button in the TelerikFileManager.  I've confirmed that it does reach the OnModelInit() method which does not return null, but never reaches the OnCreate() method.  Any ideas what might be causing this?

1 Answer, 1 is accepted

Sort by
0
Christopher
Top achievements
Rank 1
Iron
answered on 29 Nov 2023, 04:07 PM
I figured out the issue, it turned out to be because I was binding CreatedDate and UpdatedDate, but not CreatedDateUTC or UpdatedDateUTC.  That could really use a clearer error message as it's not intuitive that setting both would even be required.
Tags
FileManager
Asked by
Christopher
Top achievements
Rank 1
Iron
Answers by
Christopher
Top achievements
Rank 1
Iron
Share this question
or