Prevent null exception.