mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 14:32:42 +00:00
Add workaround for NPE in getNetworkInterfaces()
This commit is contained in:
parent
c6d9889182
commit
597582ddd8
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user