Why is BlackboardAsset a nullptr?

I’m starting to work myself into AI programming and currently work on a very basic BehaviorTree setup to understand all the interactions between the AI Controller, the BehaviorTree and the Blackboard. What I want to achieve is making an AI character move to a waypoint that’s been placed in the scene.
However, the game crashes as soon as I press the Play button in the UE4 editor.
I’ve debugged into the code with Visual Studio and discovered the crash occurs within the InitializeBlackboard(UBlackboardData& NewAsset)-function.

My setup looks like this:
The AI character holds a BehaviorTree variable and is assigned the AI Controller. The BehaviorTree class from Epic has a BlackboardAsset variable to which I assigned my Blackboard in the BehaviorTree Editor.

The AI Controller holds a BehaviorTreeComponent and a BlackboardComponent. The BlackboardComponent class also has a BlackboardAsset variable that is being compared to the one I call the InitializeBlackboard-function with at the beginning of that function.
And this is where the crash occurs.

To my knowledge the only place where I have to assign my Blackboard is inside the BehaviorTree editor, which I did. Here is a screenshot to prove what I’ve set up using the Reference Viewer:

I also tried to encapsulate the if-statement that causes the crash where my asset gets compared to a nullpointer with another if-statement that checks for the nullpointer, but that just causes it to crash there instead.

I could try it with a try-catch-statement but I think I’ve got a pretty fundamental mistake somewhere. I’ve seen a lot of tutorials and followed the important bits step-by-step so I really don’t know where I went wrong. I’ll also attach my [Diagnostics.txt][5] file from a crash:

Thanks :slight_smile:

Are you creating the components in the constructor? Can you post the entire AIController code?

I’m a ■■■■■■ and I love you. Cheers mate!