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
tree: 0da0da85f65e93459f0b3c4ea6d37731467eb376
  1. builtInServices/
  2. tools/
  3. updatableServices/
  4. .gitignore
  5. OWNERS
  6. PREUPLOAD.cfg