# Behavior tree is coming as null ptr

**URL:** <https://forums.unrealengine.com/t/behavior-tree-is-coming-as-null-ptr/490229>\
**Category:** AI\
**Tags:** unreal-engine, null, question\
**Created:** [October 25, 2021, 1:12pm UTC](https://forums.unrealengine.com/t/behavior-tree-is-coming-as-null-ptr/490229 "2021-10-25T13:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![i\_am\_burni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i\_am\_burni](https://forums.unrealengine.com/u/i_am_burni)\
**Post date:** [October 25, 2021, 1:12pm UTC](https://forums.unrealengine.com/t/behavior-tree-is-coming-as-null-ptr/490229/1 "2021-10-25T13:12:47Z")

</div>

hi

i am experiencing the same problem as

> **[Behavior asset assigned from editor is null in c++ class](https://forums.unrealengine.com/questions/226172/behavior-asset-assigned-from-editor-is-null-in-c-c.html)**
>
> Hi! I have a property in c++ that should hold the behavior tree to use like this: UPROPERTY(EditDefaultsOnly, Category = "MyAIController") UBehaviorTree \*BTAsset; I inherit the class from a blueprint and assign the BTAsset property a behavior...

please help they havent cleared the problem
