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:

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Mohaid Y
, 1 year ago
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:
via Stack Overflow by Arpan Sharma
, 9 months ago
Attempt to invoke virtual method 'android.content.pm.PackageManager android.content.Context.getPackageManager()' on a null object reference
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.