versionCode and mVersionName were added recently but ps.pkg can be null in some situations. Move them to where it will check before dereferencing it. Bug: 3121050 Change-Id: I46081f300e7a40354cb757f9eaa7ec98b9334c8b
versionCode and mVersionName were added recently but ps.pkg can be null in some situations. Move them to where it will check before dereferencing it. Bug: 3121050 Change-Id: I46081f300e7a40354cb757f9eaa7ec98b9334c8b