Can we use interface in object in uvm?

In reply to Srinadh:

Are you sure config_h.vif is not null inside the agent’s build phase when making the assigment?