Fix for crash on null device

This commit is contained in:
Dan Morphis authored and Zaid Abdulla committed 2018-11-30 00:28:26 -08:00
1 parent bbc2853cab
commit 59474e9aea
1 file changed
+1
+1
View File
@@ -209,6 +209,7 @@ function connectionRequest(deviceId, callback) {
db.devicesCollection.findOne({ _id: deviceId }, proj, (err, device) => {
if (err) return void callback(err);
if (!device) return void callback(new Error("No such device"));
let managementServer,
connectionRequestUrl,