Null Check

Null Check added.