Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FISH-9803 - NPE prevented by update of index in array to prevent null value as input. #6977

Merged
merged 3 commits into from
Oct 8, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ private String wsImport(URL wsdlLocation) throws IOException {
logger.log(Level.SEVERE, LogUtils.CREATE_DIR_FAILED, classesDir);
}

String[] wsimportArgs = new String[14];
String[] wsimportArgs = new String[13];
wsimportArgs[0] = "-d";
wsimportArgs[1] = classesDir.getAbsolutePath();
wsimportArgs[2] = "-keep";
Expand All @@ -549,10 +549,10 @@ private String wsImport(URL wsdlLocation) throws IOException {
wsimportArgs[7] = "-extension";
String modulesDir = System.getProperty("com.sun.aas.installRoot") + File.separator + "modules" + File.separator;
wsimportArgs[8] = modulesDir + "jakarta.jws-api.jar";
wsimportArgs[10] = modulesDir + "webservices-osgi.jar";
wsimportArgs[11] = modulesDir + "jaxb-osgi.jar";
wsimportArgs[12] = modulesDir + "jakarta.xml.ws-api.jar";
wsimportArgs[13] = modulesDir + "jakarta.activation-api.jar";
wsimportArgs[9] = modulesDir + "webservices-osgi.jar";
wsimportArgs[10] = modulesDir + "jaxb-osgi.jar";
wsimportArgs[11] = modulesDir + "jakarta.xml.ws-api.jar";
wsimportArgs[12] = modulesDir + "jakarta.activation-api.jar";
WSToolsObjectFactory tools = WSToolsObjectFactory.newInstance();
logger.log(Level.INFO, LogUtils.WSIMPORT_INVOKE, wsdlLocation);
boolean success = tools.wsimport(System.out, wsimportArgs);
Expand Down