Avoid NPE when the argument is null