From 20a5a844dbd60ec1d8f41e856b029a2e13f39fc3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 31 Jul 2014 01:32:59 -0700 Subject: [PATCH] Fix crash with WoL if a MAC address isn't present --- src/com/limelight/PcView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/limelight/PcView.java b/src/com/limelight/PcView.java index c75564fd..660c22d7 100644 --- a/src/com/limelight/PcView.java +++ b/src/com/limelight/PcView.java @@ -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