# Project compiles but engine crashes while clicking on play

**URL:** <https://forums.unrealengine.com/t/project-compiles-but-engine-crashes-while-clicking-on-play/450720>\
**Category:** Platform & Builds\
**Tags:** error, exception, unreal-engine, crash, UE4, question\
**Created:** [June 15, 2019, 6:44am UTC](https://forums.unrealengine.com/t/project-compiles-but-engine-crashes-while-clicking-on-play/450720 "2019-06-15T06:44:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xod15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xod15](https://forums.unrealengine.com/u/xod15)\
**Post date:** [June 15, 2019, 6:44am UTC](https://forums.unrealengine.com/t/project-compiles-but-engine-crashes-while-clicking-on-play/450720/1 "2019-06-15T06:44:19Z")

</div>

The project compiles normally, however when opening the editor and clicking on “play” the engine crashes and shows this error…  
Exception thrown at 0x00007FF97F42D93F (UE4Editor-Engine.dll) in UE4Editor.exe: 0xC0000005: Access violation reading location 0x0000000000000340. occurred.

 ![279856-sssss.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/d/51d4f5204423046e71b8157799c86c0f8f67c91b.gif)

---

<div class="post-metadata">

**Author:** ![staticvoidlol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@staticvoidlol](https://forums.unrealengine.com/u/staticvoidlol)\
**Post date:** [June 25, 2019, 1:48pm UTC](https://forums.unrealengine.com/t/project-compiles-but-engine-crashes-while-clicking-on-play/450720/2 "2019-06-25T13:48:17Z")

</div>

At the bottom left of your screenshot it looks like “ActorThatOpens” is null. You’re passing a pointer around without checking whether it’s null.
