Skip to content

Commit

Permalink
add nullpointer check
Browse files Browse the repository at this point in the history
  • Loading branch information
jbo023 committed Apr 17, 2020
1 parent 99b7c25 commit 7424499
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Scene/BillboardCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ function BillboardCollection(options) {
var billboards = this._billboards;
var length = billboards.length;
for (var i = 0; i < length; ++i) {
billboards[i]._updateClamping();
if (billboards[i]) {
billboards[i]._updateClamping();
}
}
},
this
Expand Down

0 comments on commit 7424499

Please sign in to comment.