Skip to content

Commit 5302388

Browse files
committed
more null checks
1 parent 31fb824 commit 5302388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/utils/requestProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3718,7 +3718,7 @@ function processUser(params, initiator, done, try_times) {
37183718
});
37193719
}
37203720
//check if device id was changed
3721-
else if (params.qstring.old_device_id && params.qstring.old_device_id !== params.qstring.device_id) {
3721+
else if (params && params.qstring && params.qstring.old_device_id && params.qstring.old_device_id !== params.qstring.device_id) {
37223722
const old_id = common.crypto.createHash('sha1')
37233723
.update(params.qstring.app_key + params.qstring.old_device_id + "")
37243724
.digest('hex');

0 commit comments

Comments
 (0)