Fixed BeanFactoryAwareFunctionRegistry default function definition lookup
This commit is contained in:
@@ -195,8 +195,10 @@ public class BeanFactoryAwareFunctionRegistry
|
|||||||
definition = functionNames[0];
|
definition = functionNames[0];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Assert.isTrue(this.registrationsByName.size() == 1, "Found more then one function in local registry");
|
if (this.registrationsByName.size() > 0) {
|
||||||
definition = this.registrationsByName.keySet().iterator().next();
|
Assert.isTrue(this.registrationsByName.size() == 1, "Found more then one function in local registry");
|
||||||
|
definition = this.registrationsByName.keySet().iterator().next();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return definition;
|
return definition;
|
||||||
|
|||||||
Reference in New Issue
Block a user