# Accessed None trying to read (real) property CallFunc\_GetAIController\_ReturnValue\_1 in not an UClass

**URL:** <https://forums.unrealengine.com/t/accessed-none-trying-to-read-real-property-callfunc-getaicontroller-returnvalue-1-in-not-an-uclass/2856240>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [November 15, 2026, 6:43pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-real-property-callfunc-getaicontroller-returnvalue-1-in-not-an-uclass/2856240 "2026-11-15T18:43:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pastelfable](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pastelfable/32/1138306_2.png) [@pastelfable](https://forums.unrealengine.com/u/pastelfable)\
**Post date:** [November 15, 2026, 6:43pm UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-real-property-callfunc-getaicontroller-returnvalue-1-in-not-an-uclass/2856240/1 "2026-11-15T18:43:31Z")

</div>

I’m getting the error:

`Accessed None trying to read (real) property CallFunc_GetAIController_ReturnValue_1 in not an UClass`

When getting the AI controller with this code (kill enemy is a function I wrote in c++):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/1/1/4113c9d1cca4ff5e2eef06e95f89ae90d75e01a5.png)

The enemy death function is called on begin play, after waiting for the health attribute to drop to zero:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/3/973c805d8aa2da2f7e7f3183942a18a7d7cb9de9.png)

What’s strange is that the game is working exactly as intended, and I only get the error when I close the play window after the enemy has despawned. I thought maybe the enemy death function was being called multiple times, but I put a print string after it and it’s only being called once. I put a print string after “is not valid” and it never gets called.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [November 16, 2026, 3:04am UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-real-property-callfunc-getaicontroller-returnvalue-1-in-not-an-uclass/2856240/2 "2026-11-16T03:04:07Z")

</div>

i’d say its ‘self’ that is invalid which makes sense on closing PIE, why its being called is another matter. (check if the k2node fires?) you can try validate self just to remove the error and i dont think its anything to worry about

---

<div class="post-metadata">

**Author:** ![illspiritx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illspiritx](https://forums.unrealengine.com/u/illspiritx)\
**Post date:** [November 16, 2026, 5:41am UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-real-property-callfunc-getaicontroller-returnvalue-1-in-not-an-uclass/2856240/3 "2026-11-16T05:41:55Z")

</div>

You using Mass AI to control teh pawn? If so mass isn’t a traditional ai controller you can use unpossess on. Would probably need to get the mass agent comp and call disable or something on it. Haven’t really used mass much, so not sure of the specifics on the posession life cycle there.

Or if it’s some hybrid controller setup (or your player is controlling a child of the class), try using a generic Get Controller node instead of Get AI Controller.

---

<div class="post-metadata">

**Author:** ![TheAli94](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheAli94](https://forums.unrealengine.com/u/TheAli94)\
**Post date:** [November 16, 2026, 11:54am UTC](https://forums.unrealengine.com/t/accessed-none-trying-to-read-real-property-callfunc-getaicontroller-returnvalue-1-in-not-an-uclass/2856240/4 "2026-11-16T11:54:51Z")

</div>

Hello there,

so your **GetAIController** is returning **NONE** , you might wanna check if your pawn / character actor is actually possessed by an **AI Controller** also you need **Auto Possess AI** to be set to **Placed in World or Spawned,** you can find them both in \*\*Class Defaults.  
\*\*  
hopes that works with you.

best,
