You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by ga...@apache.org on 2008/02/12 18:37:30 UTC

svn commit: r620878 - in /incubator/pig/trunk: CHANGES.txt src/org/apache/pig/impl/PigContext.java

Author: gates
Date: Tue Feb 12 09:37:21 2008
New Revision: 620878

URL: http://svn.apache.org/viewvc?rev=620878&view=rev
Log:
PIG-92: Fix NullPointerException in PIgContext due to uninitialized conf reference.

Modified:
    incubator/pig/trunk/CHANGES.txt
    incubator/pig/trunk/src/org/apache/pig/impl/PigContext.java

Modified: incubator/pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/pig/trunk/CHANGES.txt?rev=620878&r1=620877&r2=620878&view=diff
==============================================================================
--- incubator/pig/trunk/CHANGES.txt (original)
+++ incubator/pig/trunk/CHANGES.txt Tue Feb 12 09:37:21 2008
@@ -94,3 +94,6 @@
 
 	PIG-97: Turn off combiner in the case of Cogroup, as it doesn't work when
 	more than one bag is involved (gates).
+
+	PIG-92: Fix NullPointerException in PIgContext due to uninitialized conf
+	reference. (francisoud via gates)

Modified: incubator/pig/trunk/src/org/apache/pig/impl/PigContext.java
URL: http://svn.apache.org/viewvc/incubator/pig/trunk/src/org/apache/pig/impl/PigContext.java?rev=620878&r1=620877&r2=620878&view=diff
==============================================================================
--- incubator/pig/trunk/src/org/apache/pig/impl/PigContext.java (original)
+++ incubator/pig/trunk/src/org/apache/pig/impl/PigContext.java Tue Feb 12 09:37:21 2008
@@ -67,7 +67,7 @@
     private ExecType execType;;    
 
     //  configuration for connecting to hadoop
-    transient private Properties conf = null;        
+    transient private Properties conf = new Properties();
     
     //  extra jar files that are needed to run a job
     transient public List<URL> extraJars = new LinkedList<URL>();              
@@ -164,8 +164,6 @@
             switch (execType) {
             case LOCAL:
             {
-                conf = new Properties();
-
                 lfs = new HDataStorage(URI.create("file:///"),
                                        new Configuration());