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:

Stack Overflow | Mohaid Y | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    java.lang.NullPointerException with InterstitialAd admob

    Stack Overflow | 7 months ago | Mohaid Y
    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:

    Root Cause Analysis

    1. 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()
    2. com.google.android
      InterstitialAd.loadAd
      1. com.google.android.gms.common.zze.isGooglePlayServicesAvailable(Unknown Source)
      2. com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)
      3. com.google.android.gms.ads.internal.util.client.zza.zzar(Unknown Source)
      4. com.google.android.gms.ads.internal.client.zzl.zza(Unknown Source)
      5. com.google.android.gms.ads.internal.client.zzl.zzb(Unknown Source)
      6. com.google.android.gms.ads.internal.client.zzaf.zzam(Unknown Source)
      7. com.google.android.gms.ads.internal.client.zzaf.zza(Unknown Source)
      8. com.google.android.gms.ads.InterstitialAd.loadAd(Unknown Source)
      8 frames
    3. com.Radio.Stations
      MusicPlayerControl$2.onTouch
      1. com.Radio.Stations.MusicPlayer.play(MusicPlayer.java:125)
      2. com.Radio.Stations.RadioList.nextOrPreviousRadioStation(RadioList.java:82)
      3. com.Radio.Stations.MusicPlayerControl$2.onTouch(MusicPlayerControl.java:94)
      3 frames
    4. Android Platform
      View.dispatchTouchEvent
      1. android.view.View.dispatchTouchEvent(View.java:8802)
      1 frame