hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r385655 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java
Date Mon, 13 Mar 2006 20:39:24 GMT
Author: cutting
Date: Mon Mar 13 12:39:22 2006
New Revision: 385655

URL: http://svn.apache.org/viewcvs?rev=385655&view=rev
Log:
Fix for HADOOP-77.  Fixes some NPEs.  Contributed by Stefan.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java?rev=385655&r1=385654&r2=385655&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java Mon Mar 13 12:39:22
2006
@@ -38,8 +38,8 @@
     File localJobFile = null;
     File localJarFile = null;
 
-    TaskInProgress maps[] = null;
-    TaskInProgress reduces[] = null;
+    TaskInProgress maps[] = new TaskInProgress[0];
+    TaskInProgress reduces[] = new TaskInProgress[0];
     int numMapTasks = 0;
     int numReduceTasks = 0;
 



Mime
View raw message