OSDN Git Service

Add null check before checking overlay
authorPatrick Baumann <patb@google.com>
Tue, 8 May 2018 21:31:45 +0000 (14:31 -0700)
committerPatrick Baumann <patb@google.com>
Tue, 8 May 2018 21:31:45 +0000 (14:31 -0700)
commit7438dcbfe2f226ffef0dae52ec32e021622595e4
treed8252b05802e88c9df996dd17c17f5cdb53927b6
parent0c2985384b4f9022569614e6d330aa09aad8a99e
Add null check before checking overlay

This change prevents an NPE that was occurring when the package
for a given setting was assumed to be non-null while dumping
package information for e.g. adb shell dumpsys package

Test: manual - adb shell dumpsys package is no longer malformed
Change-Id: Idaf6a6b82f1fb450848faa15f19ee08085605bdb
Fixes: 79268525
services/core/java/com/android/server/pm/Settings.java