In reply to UVM_Xplorer:
My guess is Sequencer is null i.e not created within Agent .
Please share the code for Agent class .
Also it would be easier to debug if you can point to the complete executable code on edaplayground .
That way we could execute and observe the output as well .