Author: damitha
Date: Thu Nov 27 08:18:24 2008
New Revision: 721223
URL: http://svn.apache.org/viewvc?rev=721223&view=rev
Log:
Check whether op_name is not null. Otherwise it segfault
Modified:
webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
Modified:
webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c?rev=721223&r1=721222&r2=721223&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
(original)
+++ webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c Thu
Nov 27 08:18:24 2008
@@ -378,9 +378,16 @@
axis2_op_t *op = NULL;
op_name = sandesha2_msg_store_bean_get_op(msg_store_bean, env);
- op = axis2_svc_get_op_with_name(svc, env, op_name);
- mep = sandesha2_msg_store_bean_get_op_mep(msg_store_bean, env);
- axis2_op_set_msg_exchange_pattern(op, env, mep);
+ if(op_name)
+ {
+ AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "[sandesha2]
op_name:%s", op_name);
+ op = axis2_svc_get_op_with_name(svc, env, op_name);
+ }
+ if(op)
+ {
+ mep = sandesha2_msg_store_bean_get_op_mep(msg_store_bean, env);
+ axis2_op_set_msg_exchange_pattern(op, env, mep);
+ }
axis2_msg_ctx_set_svc(msg_ctx, env, svc);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]