You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2014/02/03 19:02:10 UTC

[jira] [Commented] (NUTCH-1722) FetcherJob#fetch throws NullPointerException for null batchId

    [ https://issues.apache.org/jira/browse/NUTCH-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889686#comment-13889686 ] 

Lewis John McGibbney commented on NUTCH-1722:
---------------------------------------------

+1. Anyone else for this one?

> FetcherJob#fetch throws NullPointerException for null batchId
> -------------------------------------------------------------
>
>                 Key: NUTCH-1722
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1722
>             Project: Nutch
>          Issue Type: Bug
>          Components: fetcher
>    Affects Versions: 2.2.1
>            Reporter: Gerhard Gossen
>         Attachments: NUTCH-1722-2.x.patch
>
>
> The documentation of FetcherJob#fetch claims that a null batchId parameter is interpreted as "fetch all generated fetchlists". However, the implementation tries to do {{batchId.equals(Nutch.ALL_BATCH_ID_STR)}}, which throws a NullPointerException when batchId is null.
> The provided patch sets a null batchId to {{Nutch.ALL_BATCH_ID_STR}}, which should be the documented behavior.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)