java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageInfo android.content.pm.PackageManager.getPackageInfo(java.lang.String, int)' on a null object reference 07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:


Solutions on the web

Solution icon of stackoverflow
Attempt to invoke virtual method 'android.content.pm.PackageInfo android.content.pm.PackageManager.getPackageInfo(java.lang.String, int)' on a null object reference 07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:

Solution icon of stackoverflow
via Stack Overflow by Arpan Sharma
, 7 months ago
Attempt to invoke virtual method 'android.content.pm.PackageManager android.content.Context.getPackageManager()' on a null object reference

Stack trace

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageInfo android.content.pm.PackageManager.getPackageInfo(java.lang.String, int)' on a null object reference 07-18 16:52:59.049 26421-26421/com.radio.stations W/System.err:
	at com.google.android.gms.common.zze.isGooglePlayServicesAvailable(Unknown Source)
	at com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)
	at com.google.android.gms.ads.internal.util.client.zza.zzar(Unknown Source)
	at com.google.android.gms.ads.internal.client.zzl.zza(Unknown Source)
	at com.google.android.gms.ads.internal.client.zzl.zzb(Unknown Source)
	at com.google.android.gms.ads.internal.client.zzaf.zzam(Unknown Source)
	at com.google.android.gms.ads.internal.client.zzaf.zza(Unknown Source)
	at com.google.android.gms.ads.InterstitialAd.loadAd(Unknown Source)
	at com.Radio.Stations.MusicPlayer.play(MusicPlayer.java:125)
	at com.Radio.Stations.RadioList.nextOrPreviousRadioStation(RadioList.java:82)
	at com.Radio.Stations.MusicPlayerControl$2.onTouch(MusicPlayerControl.java:94)
	at android.view.View.dispatchTouchEvent(View.java:8802)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.