You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2016/03/01 20:38:25 UTC

syncope git commit: [SYNCOPE-744] Fixing behavior when the notification job is not scheduled

Repository: syncope
Updated Branches:
  refs/heads/master 6306562fd -> 981dba133


[SYNCOPE-744] Fixing behavior when the notification job is not scheduled


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/981dba13
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/981dba13
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/981dba13

Branch: refs/heads/master
Commit: 981dba133cd4615ad7ffde5b2c7e6fa8c99a4568
Parents: 6306562
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Tue Mar 1 20:33:29 2016 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Tue Mar 1 20:33:29 2016 +0100

----------------------------------------------------------------------
 .../org/apache/syncope/client/console/widgets/JobWidget.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/981dba13/client/console/src/main/java/org/apache/syncope/client/console/widgets/JobWidget.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/widgets/JobWidget.java b/client/console/src/main/java/org/apache/syncope/client/console/widgets/JobWidget.java
index b047188..4b49af8 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/widgets/JobWidget.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/widgets/JobWidget.java
@@ -80,7 +80,10 @@ public class JobWidget extends AbstractWidget {
 
     private static List<JobTO> getAvailable(final SyncopeConsoleSession session) {
         List<JobTO> available = new ArrayList<>();
-        available.add(session.getService(NotificationService.class).getJob());
+        JobTO notificationJob = session.getService(NotificationService.class).getJob();
+        if (notificationJob != null) {
+            available.add(notificationJob);
+        }
         available.addAll(session.getService(TaskService.class).listJobs());
         available.addAll(session.getService(ReportService.class).listJobs());