nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-1722) FetcherJob#fetch throws NullPointerException for null batchId
Date Tue, 04 Feb 2014 00:17:05 GMT

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

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

Hi [~someuser77], if we wish to change the behavior then we should open a new issue and justify
as you have done above.
This particular ticket has been logged as a bug, which i think is correct. Your suggestion
is very valid but appears to be an improvement if anything else. Please feel free to open
a new issue and submit a patch for 2.x HEAD if you are able. Thanks

> 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)

Mime
View raw message