pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r774989 - in /hadoop/pig/trunk: CHANGES.txt src/org/apache/pig/tools/pigstats/PigStats.java
Date Fri, 15 May 2009 02:43:53 GMT
Author: gates
Date: Fri May 15 02:43:52 2009
New Revision: 774989

URL: http://svn.apache.org/viewvc?rev=774989&view=rev
Log:
PIG-810: Fixed NPE in PigStats (gates)


Modified:
    hadoop/pig/trunk/CHANGES.txt
    hadoop/pig/trunk/src/org/apache/pig/tools/pigstats/PigStats.java

Modified: hadoop/pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/CHANGES.txt?rev=774989&r1=774988&r2=774989&view=diff
==============================================================================
--- hadoop/pig/trunk/CHANGES.txt (original)
+++ hadoop/pig/trunk/CHANGES.txt Fri May 15 02:43:52 2009
@@ -44,6 +44,8 @@
 
 BUG FIXES
 
+PIG-810: Fixed NPE in PigStats (gates)
+
 PIG-804: problem with lineage with double map redirection (pradeepkth)
 
 PIG-733: Order by sampling dumps entire sample to hdfs which causes dfs

Modified: hadoop/pig/trunk/src/org/apache/pig/tools/pigstats/PigStats.java
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/src/org/apache/pig/tools/pigstats/PigStats.java?rev=774989&r1=774988&r2=774989&view=diff
==============================================================================
--- hadoop/pig/trunk/src/org/apache/pig/tools/pigstats/PigStats.java (original)
+++ hadoop/pig/trunk/src/org/apache/pig/tools/pigstats/PigStats.java Fri May 15 02:43:52 2009
@@ -172,7 +172,7 @@
             
         }
         
-        lastJobID = lastJob.getAssignedJobID().toString();
+        if (lastJob != null) lastJobID = lastJob.getAssignedJobID().toString();
         return stats;
     }
     



Mime
View raw message