fix: Crashing when no internet is available

This commit is contained in:
PapaTutuWawa 2022-07-28 12:14:26 +02:00
parent bdb9ea4b1e
commit 680bbe1bb4

View File

@ -56,9 +56,9 @@ public class MoxdnsAndroidPlugin implements FlutterPlugin, MethodCallHandler {
}});
}
result.success(tmp);
} catch (IOException ex) {
} catch (Exception ex) {
ex.printStackTrace();
result.error("1", ex.getMessage(), ex.getStackTrace());
result.success(new ArrayList());
}
}
});