Check for null parameter as well.