mirror of https://github.com/apache/druid.git
IndexerCoordinatorResource: Un-break null returns
This commit is contained in:
parent
ce1ef94061
commit
017278a5d5
|
@ -210,7 +210,8 @@ public class IndexerCoordinatorResource
|
||||||
try {
|
try {
|
||||||
final T ret = taskMasterLifecycle.getTaskActionClient(holder.getTask())
|
final T ret = taskMasterLifecycle.getTaskActionClient(holder.getTask())
|
||||||
.submit(holder.getAction());
|
.submit(holder.getAction());
|
||||||
retMap = ImmutableMap.<String, Object>of("result", ret);
|
retMap = Maps.newHashMap();
|
||||||
|
retMap.put("result", ret);
|
||||||
} catch(IOException e) {
|
} catch(IOException e) {
|
||||||
return Response.serverError().build();
|
return Response.serverError().build();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue