# The year is 1996, the best practice in software design is to crash the entire application when a field is null.

**URL:** <https://forums.unrealengine.com/t/the-year-is-1996-the-best-practice-in-software-design-is-to-crash-the-entire-application-when-a-field-is-null/2728478>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, LyraStarterGame\
**Created:** [June 13, 2026, 9:34pm UTC](https://forums.unrealengine.com/t/the-year-is-1996-the-best-practice-in-software-design-is-to-crash-the-entire-application-when-a-field-is-null/2728478 "2026-06-13T21:34:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Some1HumanHere](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Some1HumanHere](https://forums.unrealengine.com/u/Some1HumanHere)\
**Post date:** [June 13, 2026, 9:34pm UTC](https://forums.unrealengine.com/t/the-year-is-1996-the-best-practice-in-software-design-is-to-crash-the-entire-application-when-a-field-is-null/2728478/1 "2026-06-13T21:34:42Z")

</div>

Now 30 years later, why do still have a check() function that completelly crash UE ?

Joke aside, isn’t there like a better pattern to come with ?

I developped my own Optional pattern in unity that I’ve been using for 10 years and nothing crashes or raises null ever in a regular flow.

Sorry to say but this kind of code is bad design.

```c
void UAsyncAction_ExperienceReady::Step2_ListenToExperienceLoading(AGameStateBase* GameState)
{
    check(GameState);
    ULyraExperienceManagerComponent* ExperienceComponent = GameState->FindComponentByClass<ULyraExperienceManagerComponent>();
    check(ExperienceComponent);
}

```

Like am I the only one thinking this way ? Should I Ask claude to simply scan the code base and replace all those checks with grown up if/else ?

This comes in harshly but I’ve been clicking “Send and Restart” more that a healthy number of time today

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [June 15, 2026, 6:40pm UTC](https://forums.unrealengine.com/t/the-year-is-1996-the-best-practice-in-software-design-is-to-crash-the-entire-application-when-a-field-is-null/2728478/2 "2026-06-15T18:40:56Z")

</div>

Agreed, crashing app is sign of amateurish stuff.

Should be able to catch anything within reason, log it somehow, and go back to main menu or something, with a clear message about why. Preferably with a bug report option.
