Canvas->Project always causes exception

Hello community and Epic,

i have the following line in my TestHUD.cpp:

 Canvas->Project(FVector(0.0f, 0.0f, 50.0f));

Everytime it gets called, it triggers an exception and i don’t know, how to avoid it.

The errormessage:

Ausnahme ausgelöst bei 0x00007FFFB67E3620 (UE4Editor-Engine.dll) in UE4Editor.exe: 0xC0000005: Zugriffsverletzung beim Lesen an Position 0x0000000000000288.

Exception triggered at 0x00007FFFB67E3620 (UE4Editor-Engine.dll) in UE4Editor.exe: 0xC0000005: Accessviolation reading at Position 0x0000000000000288.

Thanks to Rama, i know now, that Canvas has to be called from DrawHUD(…).