From 0f9cba1053c281d71ae6fd6f574e1ff557f6d812 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 1 Jan 2019 22:34:19 -0800 Subject: [PATCH] Fix crash due to a null computer uuid --- .../com/limelight/computers/ComputerManagerService.java | 7 +++++-- moonlight-common | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/limelight/computers/ComputerManagerService.java b/app/src/main/java/com/limelight/computers/ComputerManagerService.java index 80ada69a..f79a5e85 100644 --- a/app/src/main/java/com/limelight/computers/ComputerManagerService.java +++ b/app/src/main/java/com/limelight/computers/ComputerManagerService.java @@ -457,8 +457,11 @@ public class ComputerManagerService extends Service { ComputerDetails newDetails = http.getComputerDetails(); // Check if this is the PC we expected - if (details.uuid != null && newDetails.uuid != null && - !details.uuid.equals(newDetails.uuid)) { + if (newDetails.uuid == null) { + LimeLog.severe("Polling returned no UUID!"); + return null; + } + else if (!details.uuid.equals(newDetails.uuid)) { // We got the wrong PC! LimeLog.info("Polling returned the wrong PC!"); return null; diff --git a/moonlight-common b/moonlight-common index 15bdc325..f42261cc 160000 --- a/moonlight-common +++ b/moonlight-common @@ -1 +1 @@ -Subproject commit 15bdc325f93db7d57d742f3a044da71d1536f47e +Subproject commit f42261cc925c32200da132c168a9f72b34fa367a