Author: chamikara
Date: Wed Sep 12 11:33:38 2007
New Revision: 575036
URL: http://svn.apache.org/viewvc?rev=575036&view=rev
Log:
Fixed a possible Nullpointer Exception
Modified:
webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/SequenceIDDispatcher.java
Modified:
webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/SequenceIDDispatcher.java
URL:
http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/SequenceIDDispatcher.java?rev=575036&r1=575035&r2=575036&view=diff
==============================================================================
---
webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/SequenceIDDispatcher.java
(original)
+++
webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/SequenceIDDispatcher.java
Wed Sep 12 11:33:38 2007
@@ -79,17 +79,19 @@
//If this is the RMD of the sequence
RMDBean rmdBean =
SandeshaUtil.getRMDBeanFromSequenceId(storageManager, sequenceID);
- String serviceName = rmdBean.getServiceName();
- if (serviceName != null) {
- service =
configurationContext.getAxisConfiguration()
-
.getService(serviceName);
+ if (rmdBean != null) {
+ String serviceName =
rmdBean.getServiceName();
+ if (serviceName != null) {
+ service =
configurationContext.getAxisConfiguration()
+
.getService(serviceName);
+ }
}
if (service == null && rmdBean == null) {
//If this is the RMS of the sequence
RMSBean rmsBean =
SandeshaUtil.getRMSBeanFromSequenceId(storageManager, sequenceID);
- serviceName = rmsBean.getServiceName();
+ String serviceName =
rmsBean.getServiceName();
if (serviceName != null) {
service =
configurationContext.getAxisConfiguration()
.getService(serviceName);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]