pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject svn commit: r1208337 - /pig/branches/branch-0.10/src/org/apache/pig/LoadFunc.java
Date Wed, 30 Nov 2011 09:09:03 GMT
Author: daijy
Date: Wed Nov 30 09:09:03 2011
New Revision: 1208337

URL: http://svn.apache.org/viewvc?rev=1208337&view=rev
Log:
Tiny fix: NPE introduced by PIG-2332

Modified:
    pig/branches/branch-0.10/src/org/apache/pig/LoadFunc.java

Modified: pig/branches/branch-0.10/src/org/apache/pig/LoadFunc.java
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/src/org/apache/pig/LoadFunc.java?rev=1208337&r1=1208336&r2=1208337&view=diff
==============================================================================
--- pig/branches/branch-0.10/src/org/apache/pig/LoadFunc.java (original)
+++ pig/branches/branch-0.10/src/org/apache/pig/LoadFunc.java Wed Nov 30 09:09:03 2011
@@ -303,6 +303,7 @@ public abstract class LoadFunc {
      */
     public final void warn(String msg, Enum warningEnum) {
         Counter counter = PigStatusReporter.getInstance().getCounter(warningEnum);
-        counter.increment(1);
+        if (counter!=null)
+            counter.increment(1);
     }
 }



Mime
View raw message