Skip to content

Commit 31eed2d

Browse files
authored
Add null check for vehicle data (#675)
1 parent cd2d250 commit 31eed2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/model/sdl/VehicleInfoModel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ SDL.SDLVehicleInfoModel = Em.Object.create(
599599
key = 'clusterModes';
600600
}
601601
if (key != 'appID') {
602-
if (this.vehicleData[key] != undefined) {
602+
if (this.vehicleData && this.vehicleData[key] != undefined) {
603603
data[oldKey] = this.vehicleData[key];
604604
} else {
605605
if (!result) {

0 commit comments

Comments
 (0)