You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2011/09/08 15:33:12 UTC

svn commit: r1166680 - /incubator/ace/trunk/ace-discovery-property/src/main/java/org/apache/ace/discovery/property/Activator.java

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;