diff options
author | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-07 06:48:30 +0000 |
---|---|---|
committer | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-07 06:48:30 +0000 |
commit | cf09f9dc1e18c08821df9049988c871b9d1f3f9e (patch) | |
tree | bf5a8f25a20f5fa8f551e0142154bb9a1ab22f19 | |
parent | 413a42df16320580e75b9ec7e093e2f61d1f5894 (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.java | 3 |
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(); |