Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-812

Crawl.java incorrectly uses the Generator API resulting in NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      Description

      As reported by Phil Barnett on nutch-user:

      The Fix.

      In line 131 of Crawl.java

      Generate no longer returns segments like it used to. Now it returns segs.

      line 131 needs to read

      If (segs == null)

      Instead of the current

      If (segments == null)

      After that change and a recompile, crawl is working just fine.

        Activity

        Hide
        chrismattmann Chris A. Mattmann added a comment -
        • fixed in r935453. Thanks, Phil and Andrzej!
        Show
        chrismattmann Chris A. Mattmann added a comment - fixed in r935453. Thanks, Phil and Andrzej!
        Hide
        hudson Hudson added a comment -

        Integrated in Nutch-trunk #1129 (See http://hudson.zones.apache.org/hudson/job/Nutch-trunk/1129/)

        • fix for NUTCH-812 Crawl.java incorrectly uses the Generator API resulting in NPE
        Show
        hudson Hudson added a comment - Integrated in Nutch-trunk #1129 (See http://hudson.zones.apache.org/hudson/job/Nutch-trunk/1129/ ) fix for NUTCH-812 Crawl.java incorrectly uses the Generator API resulting in NPE

          People

          • Assignee:
            chrismattmann Chris A. Mattmann
            Reporter:
            ab Andrzej Bialecki
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development