Sonar: Correctness - Possible null pointer dereference in method on
exception path