Fix crash with WoL if a MAC address isn't present

This commit is contained in:
Cameron Gutman 2014-07-31 01:32:59 -07:00
parent 1a7a2f848e
commit 20a5a844db

View File

@ -322,6 +322,11 @@ public class PcView extends Activity {
return;
}
if (computer.macAddress == null) {
Toast.makeText(PcView.this, "Unable to wake PC because GFE didn't send a MAC address", Toast.LENGTH_SHORT).show();
return;
}
Toast.makeText(PcView.this, "Waking PC...", Toast.LENGTH_SHORT).show();
new Thread(new Runnable() {
@Override