summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2009-05-07 06:48:30 +0000
committeredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2009-05-07 06:48:30 +0000
commitcf09f9dc1e18c08821df9049988c871b9d1f3f9e (patch)
treebf5a8f25a20f5fa8f551e0142154bb9a1ab22f19
parent413a42df16320580e75b9ec7e093e2f61d1f5894 (diff)
Added new check for null URI and URL parameters when reading a Composite document
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@772520 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java b/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
index db5a52a505..204022042f 100644
--- a/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
+++ b/java/sca/modules/assembly-xml/src/main/java/org/apache/tuscany/sca/assembly/xml/CompositeDocumentProcessor.java
@@ -78,6 +78,9 @@ public class CompositeDocumentProcessor extends BaseAssemblyProcessor implements
* @return a Composite object built from the supplied Composite document
*/
public Composite read(URL contributionURL, URI uri, URL url) throws ContributionReadException {
+ if( uri == null || url == null ) {
+ throw new ContributionReadException("Request to read composite with uri or url NULL");
+ } // end if
InputStream scdlStream = null;
try {
URLConnection connection = url.openConnection();