Skip to content

Commit

Permalink
Issue w3c#378 check for null before dereferencing
Browse files Browse the repository at this point in the history
  • Loading branch information
almossawi committed Mar 11, 2015
1 parent 002cfb5 commit 0811d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/common/markers.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function markers(args) {
}

function preventOverlap(labels) {
if (labels.length == 1) {
if (!labels || labels.length == 1) {
return;
}

Expand Down

0 comments on commit 0811d10

Please sign in to comment.