That's because the object is not set in the constructor. You can access 
Configuration after setConf() is called. So defer your work in the constructor 
to this method.

  public void setConf(Configuration conf) {
    this.conf = conf;
  }

 
 
-----Original message-----
> From:Sourajit Basak <sourajit.ba...@gmail.com>
> Sent: Fri 16-Nov-2012 11:28
> To: user@nutch.apache.org
> Subject: custom plugin's constructor unable to access hadoop conf
> 
> In my custom HtmlParseFilter plugin, I am getting a NPE on trying to access
> the hadoop Configuration object in the plugin constructor. Is this a known
> behavior ?
> 

Reply via email to