This is an automated email from the ASF dual-hosted git repository.

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git


The following commit(s) were added to refs/heads/master by this push:
     new e33ddfdd9d AXIS2-6045 NPE after upgrade to 1.8.2
e33ddfdd9d is described below

commit e33ddfdd9d20d6ae80c440421c3dc4dfd3cbb2c9
Author: Robert Lazarski <robertlazar...@gmail.com>
AuthorDate: Thu Feb 13 12:06:51 2025 -1000

    AXIS2-6045 NPE after upgrade to 1.8.2
---
 modules/kernel/src/org/apache/axis2/description/AxisService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/kernel/src/org/apache/axis2/description/AxisService.java 
b/modules/kernel/src/org/apache/axis2/description/AxisService.java
index 6d1c0fe099..671d402d25 100644
--- a/modules/kernel/src/org/apache/axis2/description/AxisService.java
+++ b/modules/kernel/src/org/apache/axis2/description/AxisService.java
@@ -1175,7 +1175,7 @@ public class AxisService extends AxisDescription {
             definition = (Definition) wsdlParameter.getValue();
         }
 
-        if (!wsdlImportLocationAdjusted) {
+        if (!wsdlImportLocationAdjusted && definition != null) {
             changeImportAndIncludeLocations(definition);
             wsdlImportLocationAdjusted = true;
         }

Reply via email to