The object at dereference depth 1 is being used before it was constructed/allocated. Please make sure that the object is allocated before using it

In reply to ramankaur09:

Is this line 44 of axi_agent?
#0 in \axi_agent::connect_phase at
Please paste the whole line 44.