Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Initialize variable to avoid compiler error

Sebastian Nagel4a842efd3f53
diff --git a/src/java/org/apache/nutch/crawl/URLPartitioner.java b/src/java/org/apache/nutch/crawl/URLPartitioner.java
index 23a3eb080..48ea79998 100644
--- a/src/java/org/apache/nutch/crawl/URLPartitioner.java
+++ b/src/java/org/apache/nutch/crawl/URLPartitioner.java
@@ -67,7 +67,7 @@ public class URLPartitioner implements Partitioner<Text, Writable> {
public int getPartition(Text key, Writable value, int numReduceTasks) {
String urlString = key.toString();
URL url = null;
- int hashCode;
+ int hashCode = 0;
try {
urlString = normalizers.normalize(urlString,
URLNormalizers.SCOPE_PARTITION);