Skip to content

Commit

Permalink
vk bot crash hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
upisfree committed Sep 11, 2018
1 parent 474df48 commit e16856c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace VK {
}

public onUpdates(updates, callback): void {
if (updates.length) {
if (updates && updates.length) {
log('[vk]', 'updates received, count:', updates.length);

for (let a = 0; a < updates.length; a++) {
Expand Down

0 comments on commit e16856c

Please sign in to comment.