fix native image build error when mainClass is null,add an empty string placeholder (#13426)

This commit is contained in:
foghost 2023-11-29 17:40:12 +08:00 committed by GitHub
parent a53228d545
commit 7e0954b8cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class DubboProcessAotMojo extends AbstractAotMojo {
private String[] getAotArguments(String applicationClass) {
List<String> aotArguments = new ArrayList<>();
aotArguments.add(applicationClass);
aotArguments.add(applicationClass != null ? applicationClass : "");
aotArguments.add(this.generatedSources.toString());
aotArguments.add(this.generatedResources.toString());
aotArguments.add(this.generatedClasses.toString());