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

This commit is contained in:
gtoison 2024-04-22 22:14:51 +02:00 committed by Steve Ebersole
parent 967a52fd1d
commit 08127f28df
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<>(); List<String> classesToEnhance = new ArrayList<>();
if(classNames.length() >= 1) { if(classNames != null && classNames.length() >= 1) {
classesToEnhance = Arrays.asList(classNames.split(",")); classesToEnhance = Arrays.asList(classNames.split(","));
} }