sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheol...@apache.org
Subject [5/5] git commit: SQOOP-880: NPE when stopping job that was never executed
Date Sun, 10 Feb 2013 21:30:28 GMT
Updated Branches:
  refs/heads/sqoop2 ed9c51436 -> 217cf297b


SQOOP-880: NPE when stopping job that was never executed

(Jarcec Cecho via Cheolsoo Park)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/217cf297
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/217cf297
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/217cf297

Branch: refs/heads/sqoop2
Commit: 217cf297b1f6b10f3d0417ede50282842a672e85
Parents: 1a9e6d3
Author: Cheolsoo Park <cheolsoo@apache.org>
Authored: Sun Feb 10 13:27:18 2013 -0800
Committer: Cheolsoo Park <cheolsoo@apache.org>
Committed: Sun Feb 10 13:27:18 2013 -0800

----------------------------------------------------------------------
 .../apache/sqoop/framework/FrameworkManager.java   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/217cf297/core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java b/core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
index e67ed20..1a6d427 100644
--- a/core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
+++ b/core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
@@ -531,7 +531,7 @@ public class FrameworkManager {
     Repository repository = RepositoryManager.getInstance().getRepository();
     MSubmission submission = repository.findSubmissionLastForJob(jobId);
 
-    if(!submission.getStatus().isRunning()) {
+    if(submission == null || !submission.getStatus().isRunning()) {
       throw new SqoopException(FrameworkError.FRAMEWORK_0003,
         "Job with id " + jobId + " is not running");
     }


Mime
View raw message