In reply to UVM_LOVE:
If you have a null pointer error, the most likely cause is that you have not “created” your apb_env.apb_agent.sequencer". Check if all the components in the hierarchy are “created”.
That should also explain why using “null” worked for you.