Skip to content

Commit

Permalink
Fix NPE in IPFSCompat.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbw9580 committed Aug 20, 2020
1 parent 2d12c13 commit 76be216
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ public class DHT {
* @return List of Multiaddresses of the peer
*/
public List<String> findpeerListTimeout(Multihash id, int timeout, ExecutorService executor) {
AtomicReference<List<String>> ret = new AtomicReference<>();
AtomicReference<List<String>> ret = new AtomicReference<>(new ArrayList<>());
timeLimitedExec(
"name/resolve?arg=" + id,
"dht/findpeer?arg=" + id,
timeout,
res -> {
Map peer = (Map) res;
Expand Down

0 comments on commit 76be216

Please sign in to comment.