mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-21 16:14:21 +01:00
fix
This commit is contained in:
@@ -31,6 +31,7 @@ import org.slf4j.LoggerFactory;
|
|||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
@@ -129,7 +130,7 @@ public class JsonRpcDispatcherCommand implements LocalCommand {
|
|||||||
null));
|
null));
|
||||||
}
|
}
|
||||||
|
|
||||||
Object output = result[0] == null ? new Object() : result[0];
|
Object output = result[0] == null ? Map.of() : result[0];
|
||||||
return objectMapper.valueToTree(output);
|
return objectMapper.valueToTree(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user