[MNG-7264] packaging plugins bindings cannot be empty

This commit is contained in:
Hervé Boutemy 2022-01-08 15:16:08 +01:00 committed by Hervé Boutemy
parent 7180d68a18
commit e617d51bd4
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ protected AbstractLifecycleMappingProvider( String[] pluginBindings )
{
requireNonNull( pluginBindings );
final int len = pluginBindings.length;
if ( len < 1 || len % 2 != 0 )
if ( len < 2 || len % 2 != 0 )
{
throw new IllegalArgumentException( "Plugin bindings must have more than 0, even count of elements" );
}