diff options
author | genofire <geno+dev@fireorbit.de> | 2020-02-08 16:21:53 +0100 |
---|---|---|
committer | genofire <geno+dev@fireorbit.de> | 2020-02-08 16:21:53 +0100 |
commit | e125944cbce225bc42a7a7054832f8f787025e6c (patch) | |
tree | 3db1584a7ba0d6d8f14154039aff2cd8929db36b | |
parent | f0a05e133c4cb001eefc1a4d567fb3ce60f4f544 (diff) |
[BUGFIX] happy eye: null pointer if no connection was etablished
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/Resolver.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/Resolver.java b/src/main/java/de/pixart/messenger/utils/Resolver.java index 0037e9563..86bdc40aa 100644 --- a/src/main/java/de/pixart/messenger/utils/Resolver.java +++ b/src/main/java/de/pixart/messenger/utils/Resolver.java @@ -275,6 +275,10 @@ public class Resolver { try { result = executor.invokeAny(r); executor.shutdown(); + if (result == null) { + Log.i(Config.LOGTAG, Resolver.class.getSimpleName() + ": happy eyeball unable to connect to one address"); + return null; + } Thread disconnector = new Thread(() -> { while (true) { try { |