smartdevicelink / sdl_hmi

BSD 3-Clause "New" or "Revised" License
14 stars 43 forks source link

Add null check for vehicle data #675

Closed Jack-Byrne closed 2 years ago

Jack-Byrne commented 2 years ago

Fixes #667

This PR is ready for review.

Testing Plan

Test described in issue.

Delete entire vehicle data object in hmi, then send a getVehicleData request.

Summary

The delete button in the sdl hmi replaces the entire object with null. This pr adds a null check to prevent reading a property on a null object.

CLA