IndexerCoordinatorResource: Un-break null returns

This commit is contained in:
Gian Merlino 2013-03-19 18:16:25 -07:00
parent ce1ef94061
commit 017278a5d5
1 changed files with 2 additions and 1 deletions

View File

@ -210,7 +210,8 @@ public class IndexerCoordinatorResource
try {
final T ret = taskMasterLifecycle.getTaskActionClient(holder.getTask())
.submit(holder.getAction());
retMap = ImmutableMap.<String, Object>of("result", ret);
retMap = Maps.newHashMap();
retMap.put("result", ret);
} catch(IOException e) {
return Response.serverError().build();
}