java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Activity.getBaseContext()' on a null object reference

GitHub | kimar | 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

    NPE when refreshing import Geofences

    GitHub | 7 months ago | kimar
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.app.Activity.getBaseContext()' on a null object reference
  2. 0

    IllegalArgumentException: invalid radius: 0.0

    GitHub | 6 months ago | francisdb
    java.lang.RuntimeException: Unable to start service io.locative.app.network.LocativeService@b3f27e2 with Intent { cmp=io.locative.app/.network.LocativeService (has extras) }: java.lang.IllegalArgumentException: invalid radius: 0.0
  3. 0

    Layout inflater issue only occurs some specific devices

    Stack Overflow | 5 months ago | Boopathi
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 343#168741977

    GitHub | 1 year ago | negue
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v4.widget.SwipeRefreshLayout.setRefreshing(boolean)' on a null object reference
  6. 0

    Android Retrofit "Attempt to invoke virtual method on a null object reference"

    Stack Overflow | 7 months ago | user3262438
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference

    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.Context android.app.Activity.getBaseContext()' on a null object reference

      at io.locative.app.view.ImportGeofenceFragment.refresh()
    2. io.locative.app
      LocativeApiWrapper$5.success
      1. io.locative.app.view.ImportGeofenceFragment.refresh(ImportGeofenceFragment.java:50)
      2. io.locative.app.view.ImportGeofenceFragment$1.onGetGeoFencesFinished(ImportGeofenceFragment.java:79)
      3. io.locative.app.network.LocativeApiWrapper$5.success(LocativeApiWrapper.java:142)
      4. io.locative.app.network.LocativeApiWrapper$5.success(LocativeApiWrapper.java:138)
      4 frames
    3. Retrofit
      CallbackRunnable$1.run
      1. retrofit.CallbackRunnable$1.run(CallbackRunnable.java:45)
      1 frame
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:148)
      4. android.app.ActivityThread.main(ActivityThread.java:5490)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames