You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by rh...@apache.org on 2014/03/31 20:35:23 UTC
svn commit: r1583391 -
/hive/branches/branch-0.13/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java
Author: rhbutani
Date: Mon Mar 31 18:35:22 2014
New Revision: 1583391
URL: http://svn.apache.org/r1583391
Log:
HIVE-5835 Null pointer exception in DeleteDelegator in templeton code (Hari Subramaniyan via Thejas Nair)
Modified:
hive/branches/branch-0.13/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java
Modified: hive/branches/branch-0.13/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.13/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java?rev=1583391&r1=1583390&r2=1583391&view=diff
==============================================================================
--- hive/branches/branch-0.13/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java (original)
+++ hive/branches/branch-0.13/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/JobState.java Mon Mar 31 18:35:22 2014
@@ -166,9 +166,12 @@ public class JobState {
*/
public List<JobState> getChildren() throws IOException {
ArrayList<JobState> children = new ArrayList<JobState>();
- for (String jobid : getField("children").split(",")) {
- children.add(new JobState(jobid, config));
- }
+ String childJobIDs = getField("children");
+ if (childJobIDs != null) {
+ for (String jobid : childJobIDs.split(",")) {
+ children.add(new JobState(jobid, config));
+ }
+ }
return children;
}