Dungeon Generation Not Working

I’ve followed this tutorial, Unreal Engine 4 Tutorial: Randomly Generated Levels - YouTube, and it is worked but it isn’t at the same time. Basically, it prints 'ERROR: Can’t add further connections to rooms, even though no rooms were actually made. I’m not sure what I’m doing wrong.

His code:

My Code: