Fix NPE in CarDisplayCompatScaleProviderUpdatableImpl

This CL fixes a NullPointerException that can occur in CarDisplayCompatScaleProviderUpdatableImpl.getCompatScale() when the compatScale parameter is null.

The fix is to add a null check before creating the CompatScaleWrapper object. If the compatScale parameter is null, the method will return null.
Bug: 376313474
Flag: EXEMPT bugfix
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:ce50e253dbf3c33b74c86e84a23efdeeef7a8d44
Merged-In: Ie579b89525595764126136bf049116d5ac0df6d1
Change-Id: Ie579b89525595764126136bf049116d5ac0df6d1
1 file changed