- Added check for null when trying to call a method