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 | 6 months ago
  1. 0

    java.lang.NullPointerException with InterstitialAd admob

    Stack Overflow | 6 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:
  2. 0
    samebug tip
    Initialize the variable before calling a method on it.
  3. 0
    samebug tip
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    samebug tip
    The parsed JSON does not contains the requested field.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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