Call to a member function getContractType() on null