Skip to content

Commit e5ea83c

Browse files
author
Hannah
authored
Merge pull request #8766 from virtualcitySYSTEMS/fixNullpointer
add nullpointer check
2 parents 9fb39ba + 4ecfa18 commit e5ea83c

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 (defined(billboards[i])) {
326+
billboards[i]._updateClamping();
327+
}
326328
}
327329
},
328330
this

0 commit comments

Comments
 (0)