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 22, 2016
1 parent 8f0475e commit 0279973
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 0279973

Please sign in to comment.