mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-27 06:20:01 +00:00
Add workaround for NPE in getNetworkInterfaces()
This commit is contained in:
1 parent
c6d9889182
commit
597582ddd8
1 file changed
+3
-3
@@ -88,11 +88,11 @@ public class AddComputerManually extends Activity {
|
|||||||
|
|
||||||
// Couldn't find a matching interface
|
// Couldn't find a matching interface
|
||||||
return true;
|
return true;
|
||||||
} catch (SocketException e) {
|
} catch (Exception e) {
|
||||||
|
// Catch all exceptions because some broken Android devices
|
||||||
|
// will throw an NPE from inside getNetworkInterfaces().
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
} catch (UnknownHostException e) {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user