mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 23:36:53 +00:00
Fix a potential null pointer exception
This commit is contained in:
1 parent
e912e4de57
commit
e5050f10bb
1 file changed
+2
@@ -234,6 +234,7 @@ public class ComputerManagerService extends Service {
|
||||
ComputerDetails fakeDetails = new ComputerDetails();
|
||||
fakeDetails.localIp = addr;
|
||||
fakeDetails.remoteIp = addr;
|
||||
fakeDetails.name = "";
|
||||
|
||||
addTuple(fakeDetails);
|
||||
}
|
||||
@@ -272,6 +273,7 @@ public class ComputerManagerService extends Service {
|
||||
ComputerDetails fakeDetails = new ComputerDetails();
|
||||
fakeDetails.localIp = addr;
|
||||
fakeDetails.remoteIp = addr;
|
||||
fakeDetails.name = "";
|
||||
|
||||
// Block while we try to fill the details
|
||||
runPoll(fakeDetails);
|
||||
|
||||
Reference in new issue
Block a user