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

commit b79dda3e9cd57a42fbe06c55f51ee881af83ca20
Author: Robert Lazarski <[email protected]>
AuthorDate: Mon Apr 20 13:26:15 2026 -1000

    AXIS2-6105 Fix NPE in codegen from removed JiBX unwrap.direct property
    
    Removing codegen.databinding.unwrap.direct=jibx (the only entry) and
    replacing it with a comment left the property undefined. The codegen
    engine's ConfigPropertyFileLoader.getUnwrapDirectFrameworkNames()
    then called Arrays.asList(null), throwing NPE during WSDL2Java.
    
    Fix: restore the property as empty (no frameworks handle unwrapping
    directly now that JiBX is removed). Also null-guard the getter to
    prevent this class of error if the property is missing.
---
 .../src/org/apache/axis2/wsdl/codegen/codegen-config.properties       | 2 +-
 .../src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java      | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/modules/codegen/src/org/apache/axis2/wsdl/codegen/codegen-config.properties 
b/modules/codegen/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
index 97b3983f16..4e00a58b49 100644
--- 
a/modules/codegen/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
+++ 
b/modules/codegen/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
@@ -58,7 +58,7 @@ codegen.databinding.frameworks=adb,xmlbeans,jaxbri,none
 codegen.databinding.unwrap.supported=adb,xmlbeans,jaxbri
 # this property keeps the names of the databinding frameworks that handle 
unwrapping
 # directly (rather than by using the unwrapper extension)
-# jibx removed: AXIS2-6105
+codegen.databinding.unwrap.direct=
 # the related extensions for the specified data binding frameworks above
 # Note -  these are in the lexical order of the framework names. There is an 
implicit assumption
 # that a given databinding framework will be processed only by one extension
diff --git 
a/modules/codegen/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java 
b/modules/codegen/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java
index a5b0a6d2c3..9bb8f2903a 100644
--- 
a/modules/codegen/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java
+++ 
b/modules/codegen/src/org/apache/axis2/wsdl/util/ConfigPropertyFileLoader.java
@@ -393,7 +393,9 @@ public class ConfigPropertyFileLoader {
      * @return names
      */
     public static List getUnwrapDirectFrameworkNames() {
-        return Arrays.asList(unwrapDirectdatabindingFrameworkNames);
+        return unwrapDirectdatabindingFrameworkNames != null
+                ? Arrays.asList(unwrapDirectdatabindingFrameworkNames)
+                : java.util.Collections.emptyList();
     }
 
     /**

Reply via email to