Issue #22474:account for nulls and divide by zero
Merge pull request #113 from garyhgohoos/22474

Issue #22474:account for nulls and divide by zero