Ensure null order is not allowed to bubble up to annotation utils

Fixes gh-456
This commit is contained in:
Dave Syer
2018-12-11 11:00:31 +00:00
parent 8d0f64fd93
commit daff90f230

View File

@@ -119,7 +119,7 @@ public class BootstrapImportSelector implements EnvironmentAware, DeferredImport
@Override
public Annotation[] getAnnotations() {
return new Annotation[]{order};
return order == null ? new Annotation[0] : new Annotation[]{order};
}
@Override