# Editor crashes on startup if uninitialized UPROPERTY object pointer is used in USTRUCT

**URL:** <https://forums.unrealengine.com/t/editor-crashes-on-startup-if-uninitialized-uproperty-object-pointer-is-used-in-ustruct/385785>\
**Category:** Mobile\
**Tags:** Struct, unreal-engine, crash, pointer, editor, question, CPP\
**Created:** [February 22, 2017, 10:19am UTC](https://forums.unrealengine.com/t/editor-crashes-on-startup-if-uninitialized-uproperty-object-pointer-is-used-in-ustruct/385785 "2017-02-22T10:19:36Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![anonymous\_user\_528b643b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_528b643b1](https://forums.unrealengine.com/u/anonymous_user_528b643b1)\
**Post date:** [May 12, 2017, 5:03pm UTC](https://forums.unrealengine.com/t/editor-crashes-on-startup-if-uninitialized-uproperty-object-pointer-is-used-in-ustruct/385785/11 "2017-05-12T17:03:37Z")

</div>

I do confirm I have had twice that error (different projects). It is still unclear exactly why, but it is indeed related to pointers inside a FStruct. In my case not a AActor\* but a UStaticMesh\*:

```
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item Properties")
		UStaticMesh* MeshInSpace;

```

This pointer is not setup at structure creation, but is later setup after an ActorItem is created, containing this FStruct.

So I am guessing either:

- there is a problem with the structure creation with UE4 engine (memory allocation ?) or
- the engine somehow is trying to access a value to that pointer (some kind of reflexive analysis ?)

[**EDIT**]  
Strangely, just **explicitly** setting the variable inside the FStruct to **nullptr** was sufficient to remove the error & crash…

---

_[View the full topic](https://forums.unrealengine.com/t/editor-crashes-on-startup-if-uninitialized-uproperty-object-pointer-is-used-in-ustruct/385785)._
