Fix findbugs finding: possible null pointer dereference