Skip to content

TypeError: Cannot read properties of null #269

@jbartula

Description

@jbartula

We constantly and at random get these errors:

2026-02-10 11:06:45.735 +01:00 [ERR] Unhandled exception in circuit 'ZtyCqLAZSwKF6KACUz0dQK9ZZbdfcGmd80_x1XQ1gPw'. Microsoft.JSInterop.JSException: Cannot read properties of null (reading 'getBoundingClientRect') TypeError: Cannot read properties of null (reading 'getBoundingClientRect') at Virtualiser2d.calculateViewRect (https://cenoplik.mil.local/_content/BlazorDatasheet/js/virtualise-2d.js:45:38) at https://cenoplik.mil.local/_framework/blazor.web.js:1:2900 at new Promise (<anonymous>) at w.beginInvokeJSFromDotNet (https://cenoplik.mil.local/_framework/blazor.web.js:1:2857) at vn._invokeClientMethod (https://cenoplik.mil.local/_framework/blazor.web.js:1:65751) at vn._processIncomingData (https://cenoplik.mil.local/_framework/blazor.web.js:1:63140) at Rn.onreceive (https://cenoplik.mil.local/_framework/blazor.web.js:1:56781) at WebSocket.<anonymous> (https://cenoplik.mil.local/_framework/blazor.web.js:1:80729) at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at BlazorDatasheet.Virtualise.Virtualise2D.CalculateViewRect(ElementReference reference) at BlazorDatasheet.Virtualise.Virtualise2D.RefreshView() at BlazorDatasheet.Datasheet.RefreshView() at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.PostAsync[TState](Task antecedent, Action1 callback, TState state)`

2026-02-10 11:07:45.457 +01:00 [ERR] Unhandled exception in circuit 'ZtyCqLAZSwKF6KACUz0dQK9ZZbdfcGmd80_x1XQ1gPw'. System.Threading.Tasks.TaskCanceledException: A task was canceled. at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at BlazorDatasheet.Virtualise.Virtualise2D.CalculateViewRect(ElementReference reference) at BlazorDatasheet.Virtualise.Virtualise2D.RefreshView() at BlazorDatasheet.Datasheet.RefreshView() at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.PostAsync[TState](Task antecedent, Action1 callback, TState state)`

2026-02-10 10:57:26.015 +01:00 [WRN] 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 BlazorDatasheet.Edit.EditorLayer.GetEditorSizeStyling() at BlazorDatasheet.Edit.EditorLayer.BuildRenderTree(RenderTreeBuilder __builder) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions