Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Diagram Container Null

See original GitHub issue

After overhauling a different corner of my program, I came back to see, that my Diagram’s Container happens to be null, on first AfterRender

The Diagram object is initialized within the OnInitializedAsync, and within OnAfterRenderAsync I am trying to access the Diagram, that’s where the Container gives me null, causing me a NRE.

Do you happen to know under what circumstances a Diagram’s Container is null?

Looking into the source, the Container is only ever set through and from what I recall, I didn’t need to give it an explicit Container rectangle for a Diagram to be displayed

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5

github_iconTop GitHub Comments

zHaytamcommented, Dec 26, 2022

Indeed! But you can only consider the first one

AlmightyLkscommented, Dec 26, 2022

Wouldnt the event also fire under several frontend resize circumstances?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why my `<div id="terminal-container">` is null? [duplicate]
This is most likely due to your script running before the page is loaded. Scripts in the <head> will run as soon as...
Read more >
Diagram - The layout is incorrect if containers are used
As specified before, I looked at ticket T837834 and managed to get the container to work if I set the ChildrenExpr(null). Now the...
Read more >
Smart Card Architecture - Windows Security
II, Reader Name and Container Name (NULL), \\. ... The flow chart in Figure 3 shows the selection steps performed by the Windows...
Read more >
Documentation: DevExtreme - JavaScript Diagram Nodes
You can also use the containerKeyExpr property to provide a container's content. ... null. Default Value: null. The Diagram UI component creates a...
Read more >
"Null Source Container" error during conflict resolution for RSA 8.5. Sent the following testfix:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found