incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r580926 - /incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/TimedEventHandler.java
Date Mon, 01 Oct 2007 11:33:40 GMT
Author: cziegeler
Date: Mon Oct  1 04:33:38 2007
New Revision: 580926

URL: http://svn.apache.org/viewvc?rev=580926&view=rev
Log:
Log message if illegal topic is used.

Modified:
    incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/TimedEventHandler.java

Modified: incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/TimedEventHandler.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/TimedEventHandler.java?rev=580926&r1=580925&r2=580926&view=diff
==============================================================================
--- incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/TimedEventHandler.java
(original)
+++ incubator/sling/trunk/event/src/main/java/org/apache/sling/event/impl/TimedEventHandler.java
Mon Oct  1 04:33:38 2007
@@ -204,7 +204,11 @@
         final String topic = (String) context.getConfiguration().get("topic");
         final Dictionary properties = (Dictionary) context.getConfiguration().get("config");
         if ( this.eventAdmin != null ) {
-            this.eventAdmin.postEvent(new Event(topic, properties));
+            try {
+                this.eventAdmin.postEvent(new Event(topic, properties));
+            } catch (IllegalArgumentException iae) {
+                this.logger.error("Scheduled event has illegal topic: " + topic, iae);
+            }
         } else {
             this.logger.warn("Unable to send timed event as no event admin service is available.");
         }



Mime
View raw message