HHH-17994 defensive check for the case when classNames wasn't set

(cherry picked from commit 08127f28df)
This commit is contained in:
gtoison 2024-04-22 22:14:51 +02:00 committed by Steve Ebersole
parent b7ade6c26c
commit 55781039fe
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public class MavenEnhancePlugin extends AbstractMojo {
}
List<String> classesToEnhance = new ArrayList<>();
if(classNames.length() >= 1) {
if(classNames != null && classNames.length() >= 1) {
classesToEnhance = Arrays.asList(classNames.split(","));
}