Fix a potential null pointer exception

This commit is contained in:
Cameron Gutman 2014-11-20 19:22:20 -08:00
parent e912e4de57
commit e5050f10bb

View File

@ -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);