Skip to content
Permalink
Browse files
fix NPE in ServiceTestUtil.java (#804)
  • Loading branch information
wuwen5 committed Aug 26, 2021
1 parent fc377e8 commit 42ca5e70ae47760a8ca4772f7e19c1805c224b1a
Showing 1 changed file with 1 addition and 1 deletion.
@@ -86,7 +86,7 @@ private static List<Object> generateParameterTypes(String[] parameterTypes, Serv

private static TypeDefinition findTypeDefinition(ServiceDefinition serviceDefinition, String type) {
return serviceDefinition.getTypes().stream()
.filter(t -> t.getType().equals(type))
.filter(t -> type.equals(t.getType()))
.findFirst().orElse(new TypeDefinition(type));
}

0 comments on commit 42ca5e7

Please sign in to comment.