You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Stefan Groschupf (JIRA)" <ji...@apache.org> on 2006/07/20 23:57:17 UTC

[jira] Updated: (NUTCH-325) UrlFilters.java throws NPE in case urlfilter.order contains Filters that are not in plugin.includes

     [ http://issues.apache.org/jira/browse/NUTCH-325?page=all ]

Stefan Groschupf updated NUTCH-325:
-----------------------------------

    Attachment: UrlFiltersNPE.patch

A patch that uses a Arralist instead of an array and put only entries into the list when the entry is not null. Means only loaded Urlfilter that are loaded will be also stored into the filters array that is cached into the Configuration object. 

> UrlFilters.java throws NPE in case urlfilter.order contains Filters that are not in plugin.includes
> ---------------------------------------------------------------------------------------------------
>
>                 Key: NUTCH-325
>                 URL: http://issues.apache.org/jira/browse/NUTCH-325
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 0.8-dev
>            Reporter: Stefan Groschupf
>            Priority: Minor
>             Fix For: 0.8-dev
>
>         Attachments: UrlFiltersNPE.patch
>
>
> In URLFilters constructor we use an array as long as we have filters defined in the urlfilter.order property. 
> In case those filters are not included in the plugin.include property end up putting null entries into the array.
> This cause a NPE in URLFilters line 82.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira