Error thrown

Call to a member function license_is_valid() on null