Skip to content

Commit 7424499

Browse files
committed
add nullpointer check
1 parent 99b7c25 commit 7424499

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/Scene/BillboardCollection.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ function BillboardCollection(options) {
322322
var billboards = this._billboards;
323323
var length = billboards.length;
324324
for (var i = 0; i < length; ++i) {
325-
billboards[i]._updateClamping();
325+
if (billboards[i]) {
326+
billboards[i]._updateClamping();
327+
}
326328
}
327329
},
328330
this

0 commit comments

Comments
 (0)