From e6062b2aa9202aaf27b019ce61f50563476ee884 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Tue, 22 Aug 2017 15:18:25 +1000 Subject: [PATCH] We missed this as part of #1515 We need to check for the channel exception on both sides of the channel. --- app/react-native/src/manager/provider.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/react-native/src/manager/provider.js b/app/react-native/src/manager/provider.js index f1e541c3cf4..4ac052ac9c0 100644 --- a/app/react-native/src/manager/provider.js +++ b/app/react-native/src/manager/provider.js @@ -10,7 +10,11 @@ export default class ReactProvider extends Provider { super(); this.options = options; this.selection = null; - this.channel = addons.getChannel(); + try { + this.channel = addons.getChannel(); + } catch (err) { + this.channel = undefined; + } const secured = options.secured; const websocketType = secured ? 'wss' : 'ws';