Avoid null pointer problem.