#TRUNK-4227: SonarQube - Correctness - Possible null pointer dereference