Skip to content
Permalink
Browse files
Add null check in axis2_module_builder_populate_module
JIRA: AXIS2C-1571
  • Loading branch information
bblough committed May 5, 2018
1 parent 0d6021b commit 61fa74ffbbaf9ba2d414b2de3bf5d823ec2ee644
Showing 1 changed file with 6 additions and 0 deletions.
@@ -133,6 +133,12 @@ axis2_module_builder_populate_module(
AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, "Entry:axis2_module_builder_populate_module");

module_node = axis2_desc_builder_build_om(module_builder->desc_builder, env);
if(!module_node)
{
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
"Could not get module node. Unable to proceed");
return AXIS2_FAILURE;
}
module_element = axiom_node_get_data_element(module_node, env);
if(!module_element)
{

0 comments on commit 61fa74f

Please sign in to comment.