UNavigationPath isValid() acts weird ( Triggers __BreakPoint ) c++

‌Hey 3DRaven , thanks for your Response!

i tried the above way of doing it

I get an error says :

Exception thrown at 0x00007FFC1416CD7D (UnrealEditor-NavigationSystem.dll) in UnrealEditor.exe: 0xC0000005: Access violation writing location 0x0000000000000058.

waiting to hear from you !