Page refresh causes NullReferenceException

Hi,

I have a number of detail pages build to display data from various tables. Some of these will refresh using the browser refresh option without issue, while others return the following exception:

$exception|{"Object reference not set to an instance of an object."}|System.NullReferenceException|

At the page reload:

public void Reload()
{
InvokeAsync(StateHasChanged);
}

Any tips on how to resolve this?

Check the exception stack trace for details wheee exactly will happen. You might have expression like this in the razor @someObjet.SomeProperty and the someObjet might be null.