axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject svn commit: r1831006 - /axis/axis2/c/core/trunk/src/core/deployment/module_builder.c
Date Sat, 05 May 2018 20:49:28 GMT
Author: billblough
Date: Sat May  5 20:49:28 2018
New Revision: 1831006

URL: http://svn.apache.org/viewvc?rev=1831006&view=rev
Log:
Add null check in axis2_module_builder_populate_module

JIRA: AXIS2C-1571

Modified:
    axis/axis2/c/core/trunk/src/core/deployment/module_builder.c

Modified: axis/axis2/c/core/trunk/src/core/deployment/module_builder.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/deployment/module_builder.c?rev=1831006&r1=1831005&r2=1831006&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/deployment/module_builder.c (original)
+++ axis/axis2/c/core/trunk/src/core/deployment/module_builder.c Sat May  5 20:49:28 2018
@@ -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)
     {



Mime
View raw message