Added bitScaled null pointer check.