From a26145ef91197ba374d525c947984ae672cbd94d Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Tue, 3 Nov 2015 15:11:16 -0500
Subject: Minor changes to statuses client code

---
 web/react/utils/async_client.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'web/react/utils/async_client.jsx')

diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx
index 0ecd26186..205c7461c 100644
--- a/web/react/utils/async_client.jsx
+++ b/web/react/utils/async_client.jsx
@@ -593,7 +593,9 @@ export function getStatuses() {
     const teammateIds = [];
     for (var i = 0; i < directChannels.length; i++) {
         const teammate = utils.getDirectTeammate(directChannels[i].id);
-        teammateIds.push(teammate.id);
+        if (teammate) {
+            teammateIds.push(teammate.id);
+        }
     }
 
     if (isCallInProgress('getStatuses') || teammateIds.length === 0) {
-- 
cgit v1.2.3-1-g7c22

