kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luke...@apache.org
Subject [31/50] [abbrv] incubator-kylin git commit: Fix a NPE in sending email notification;
Date Fri, 14 Aug 2015 03:21:36 GMT
Fix a NPE in sending email notification;

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

Branch: refs/heads/0.7
Commit: a60ec16c5110c92ab7a1fa9d6666264e335fbd7b
Parents: 87c4c39
Author: shaofengshi <shaofengshi@apache.org>
Authored: Tue Aug 11 12:54:06 2015 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Tue Aug 11 12:54:06 2015 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/a60ec16c/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 6ad3e17..cd40b9e 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
@@ -70,16 +70,14 @@ public class CubingJob extends DefaultChainedExecutable {
     @Override
     protected Pair<String, String> formatNotifications(ExecutableState state) {
         final Output output = jobService.getOutput(getId());
-        String logMsg;
+        String logMsg = "";
         switch (output.getState()) {
         case ERROR:
             logMsg = output.getVerboseMsg();
             break;
         case DISCARDED:
-            logMsg = "";
             break;
         case SUCCEED:
-            logMsg = "";
             break;
         default:
             return null;


Mime
View raw message