kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qhz...@apache.org
Subject incubator-kylin git commit: minor fix NullPointerException
Date Mon, 06 Jul 2015 09:59:47 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/0.8 1105c5543 -> 2b36d592b


minor fix NullPointerException


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/2b36d592
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/2b36d592
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/2b36d592

Branch: refs/heads/0.8
Commit: 2b36d592bd47a8e91d5dfe60589ba74b7038b6cb
Parents: 1105c55
Author: qianhao.zhou <qianzhou@ebay.com>
Authored: Mon Jul 6 17:58:57 2015 +0800
Committer: qianhao.zhou <qianzhou@ebay.com>
Committed: Mon Jul 6 17:58:57 2015 +0800

----------------------------------------------------------------------
 job/src/main/java/org/apache/kylin/job/cube/CubingJob.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/2b36d592/job/src/main/java/org/apache/kylin/job/cube/CubingJob.java
----------------------------------------------------------------------
diff --git a/job/src/main/java/org/apache/kylin/job/cube/CubingJob.java b/job/src/main/java/org/apache/kylin/job/cube/CubingJob.java
index bfb716c..e8bfa68 100644
--- a/job/src/main/java/org/apache/kylin/job/cube/CubingJob.java
+++ b/job/src/main/java/org/apache/kylin/job/cube/CubingJob.java
@@ -88,6 +88,9 @@ public class CubingJob extends DefaultChainedExecutable {
             default:
                 return null;
         }
+        if (logMsg == null) {
+            logMsg = "no error message";
+        }
         String content = ExecutableConstants.NOTIFY_EMAIL_TEMPLATE;
         content = content.replaceAll("\\$\\{job_name\\}", getName());
         content = content.replaceAll("\\$\\{result\\}", state.toString());


Mime
View raw message