Fixed #5510 (FP: nullPointer - variable initialized in function call)