Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class PhoenixObjects {
track.extended = true;
}

if (track.pos.length < 2) {
if (!track.pos || track.pos.length < 2) {
console.log('Track too short, and extrapolation failed.');
continue;
}
Expand Down Expand Up @@ -114,7 +114,7 @@ export class PhoenixObjects {
const trackObject = new Group();

// Check again, in case there was an issue with the extrapolation.
if (positions.length < 2) {
if (!positions || positions.length < 2) {
console.log('Track too short, and extrapolation failed.');
return trackObject;
}
Expand Down