Archiviert
13
0

attemptLoadFrom will throw IllegalArgumentException for arrays of length

1 with a null element
Dieser Commit ist enthalten in:
Glen Husman 2014-05-17 20:00:40 -07:00
Ursprung 0f5be7f1f1
Commit 1ee68d4e09

Datei anzeigen

@ -77,13 +77,13 @@ public abstract class ClassSource {
return ClassSource.empty();
}
ClassSource source = sources[0];
for(int i = 1; i < sources.length; i++){
if(source == null || sources[i] == null){
ClassSource source = null;
for(int i = 0; i < sources.length; i++){
if(sources[i] == null){
throw new IllegalArgumentException("Null values are not permitted as ClassSources.");
}
source = source.retry(sources[i]);
source = source == null ? sources[i] : source.retry(sources[i]);
}
return source;
}