Skip to content

Commit

Permalink
Fix race condition causing SymbolBucket isEmpty errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Nov 23, 2016
1 parent 25950e6 commit 4cacc0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/data/bucket/symbol_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ class SymbolBucket {
}

isEmpty() {
return this.arrays.icon.isEmpty() &&
return !this.arrays || (
this.arrays.icon.isEmpty() &&
this.arrays.glyph.isEmpty() &&
this.arrays.collisionBox.isEmpty();
this.arrays.collisionBox.isEmpty());
}

serialize(transferables) {
Expand Down

0 comments on commit 4cacc0e

Please sign in to comment.