Fixed assignment of NULL to bool variable.