mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
fix
This commit is contained in:
parent
a8bbdb54d0
commit
b09677a46c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue