The spring data repository contract for find on
a primary key is to return null if not found, so this mimics that
behavior.

On Aug 12, 2013, at 3:47 AM, Eric Bottard <notifications@github.com> wrote:

In
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/EnhancedStreamParser.java:

>  		int index = request.getIndex();
> -		if (request.getSourceChannelName() != null) {
> -			if (index == lastIndex) {
> -				return "sink";
> -			} else {
> -				return "processor";
> -			}
> +		List<ModuleDefinition> defs = moduleRegistry.findDefinitions(name
> +				.toLowerCase());
> +
> +		if (defs == null) {

List returning methods should return empty list rather than null

—
Reply to this email directly or view it on
GitHub<https://github.com/SpringSource/spring-xd/pull/208/files#r5704136>
.