Only replace the MAC address if the existing one is non-null

This commit is contained in:
Cameron Gutman 2015-02-26 15:11:46 -05:00
parent f2b8461bb9
commit 95ea88e932

View File

@ -497,7 +497,7 @@ public class ComputerManagerService extends Service {
details.update(polledDetails); details.update(polledDetails);
// If the new MAC address is empty, restore the old one (workaround for GFE bug) // If the new MAC address is empty, restore the old one (workaround for GFE bug)
if (details.macAddress.equals("00:00:00:00:00:00")) { if (details.macAddress.equals("00:00:00:00:00:00") && savedMacAddress != null) {
LimeLog.info("MAC address was empty; using existing value: "+savedMacAddress); LimeLog.info("MAC address was empty; using existing value: "+savedMacAddress);
details.macAddress = savedMacAddress; details.macAddress = savedMacAddress;
} }