[mashup-dev] svn commit r4736 -
trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper
svn at wso2.org
svn at wso2.org
Tue Jul 3 06:57:08 PDT 2007
Author: thilina
Date: Tue Jul 3 06:57:04 2007
New Revision: 4736
Modified:
trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java
Log:
null check
Modified: trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java
==============================================================================
--- trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java (original)
+++ trunk/mashup/java/modules/coreservices/servicesharinghelper/src/org/wso2/mashup/coreservices/servicesharinghelper/ServiceSharingHelper.java Tue Jul 3 06:57:04 2007
@@ -22,6 +22,7 @@
import org.apache.axis2.description.Parameter;
import org.apache.axis2.engine.AxisConfiguration;
import org.wso2.javascript.rhino.JavaScriptEngineConstants;
+import org.wso2.mashup.MashupFault;
import org.wso2.mashup.utils.MashupArchiveManupulator;
import org.wso2.mashup.MashupConstants;
import org.wso2.wsas.ServerConstants;
@@ -48,6 +49,9 @@
ConfigurationContext configContext = currentMessageContext.getConfigurationContext();
AxisService axisService = configuration.getService(serviceName);
+ if(axisService==null){
+ throw new MashupFault("Requested Mashup service cannot be found in the remote Mashup server.");
+ }
MashupArchiveManupulator masshupArchiveManupulator = new MashupArchiveManupulator();
DataHandler dataHandler = masshupArchiveManupulator.createMashupArchiveDataHandler(
axisService, configContext);
More information about the Mashup-dev
mailing list