ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1166680 - /incubator/ace/trunk/ace-discovery-property/src/main/java/org/apache/ace/discovery/property/Activator.java
Date Thu, 08 Sep 2011 13:33:12 GMT
Author: marrs
Date: Thu Sep  8 13:33:11 2011
New Revision: 1166680

URL: http://svn.apache.org/viewvc?rev=1166680&view=rev
Log:
Added a check to see if you actually specified a URL.

Modified:
    incubator/ace/trunk/ace-discovery-property/src/main/java/org/apache/ace/discovery/property/Activator.java

Modified: incubator/ace/trunk/ace-discovery-property/src/main/java/org/apache/ace/discovery/property/Activator.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-discovery-property/src/main/java/org/apache/ace/discovery/property/Activator.java?rev=1166680&r1=1166679&r2=1166680&view=diff
==============================================================================
--- incubator/ace/trunk/ace-discovery-property/src/main/java/org/apache/ace/discovery/property/Activator.java
(original)
+++ incubator/ace/trunk/ace-discovery-property/src/main/java/org/apache/ace/discovery/property/Activator.java
Thu Sep  8 13:33:11 2011
@@ -74,6 +74,10 @@ public class Activator extends Dependenc
     public void updated(String pid, Dictionary dict) throws ConfigurationException {
         String ma = (String) dict.get(MA_NAME);
         String id = (String) dict.get(DiscoveryConstants.DISCOVERY_URL_KEY);
+        
+        if (id == null) {
+            throw new ConfigurationException(DiscoveryConstants.DISCOVERY_URL_KEY, "Must
be specified");
+        }
 
         boolean needToAddComponent = false;
         Component component;



Mime
View raw message