The object at dereference depth 1 is being used before it was constructed/allocated

can any one help me to solve this error
Error-[NOA] Null object access
AHB_agent.sv, 23
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 tinku_mistry:

line 23 in AHB_agent.sv is
if(m_cfg.is_active == UVM_ACTIVE)
m_cfg is of type ahb_agent_config and this config does not have a data member called is_active.
is_active is defined in your class ahb_agent_config.

In reply to chr_sue:
//-------------------------------------------------------------
Hi @chr_sue,
Thanks for you suggestion , I need little more help.
i have mentioned here, please let me know if it is diffrent.
class ahb_agent_config extends uvm_object;
`uvm_object_utils(ahb_agent_config)

uvm_active_passive_enum is_active = UVM_ACTIVE; //--------is_active
virtual ahb_int vif;
// ahb_agent_top ahb_top;
extern function new(string name = “ahb_agent_config”);
endclass
function ahb_agent_config::new(string name = “ahb_agent_config”);
super.new(name);
endfunction

In reply to tinku_mistry:

I do not really understand what you mean.
But the strategy is you are configuring each test with respect to its needs, i.e. settings.
You are passings configuration data top down to each component. You do not follow this strategy.

In reply to chr_sue:

Thank you, i will look into this