Fix for crash on null device
This commit is contained in:
1 parent
bbc2853cab
commit
59474e9aea
1 file changed
+1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user