getObjectClass() can optionally return null; use result object's type as
fallback