CrawlDatum.set() does not resets Metadata if it is null
-------------------------------------------------------

                 Key: NUTCH-756
                 URL: https://issues.apache.org/jira/browse/NUTCH-756
             Project: Nutch
          Issue Type: Bug
            Reporter: Julien Nioche
            Priority: Blocker


The patch Nutch-702 implemented the lazy instanciation of CrawlDatum objects, 
but when using the method set(CrawlDatum) to copy the content of an instance 
into the current object we did not reset the metadata of the current object if 
it was null in the instance passed as argument. As a result, the metadata of 
the current object might be kept from a previous CrawlDatum and won't 
correspond to the other fields of the instance.
The patch attached fixes this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to