java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference

GitHub | bfarrgaynor | 2 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

    GitHub comment 907#269011247

    GitHub | 2 months ago | bfarrgaynor
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
  2. 0

    Getting this NullPointerException only when i am running release / signed apk

    GitHub | 2 months ago | BigPun86
    java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
  3. 0

    GitHub comment 831#266939937

    GitHub | 2 months ago | lucianomlima
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.animateCamera(com.google.android.gms.maps.CameraUpdate, int, com.google.android.gms.maps.GoogleMap$CancelableCallback)' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [Android] app crashes on markers mount

    GitHub | 8 months ago | kitolog
    java.lang.IndexOutOfBoundsException: Invalid index 1, size is 0
  6. 0

    App crashing Android/iOS

    GitHub | 3 months ago | aamarcha
    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 'int android.graphics.Bitmap.getWidth()' on a null object reference

      at com.airbnb.android.react.maps.AirMapMarker.getIcon()
    2. com.airbnb.android
      AirMapManager.addView
      1. com.airbnb.android.react.maps.AirMapMarker.getIcon(AirMapMarker.java:272)
      2. com.airbnb.android.react.maps.AirMapMarker.createMarkerOptions(AirMapMarker.java:301)
      3. com.airbnb.android.react.maps.AirMapMarker.getMarkerOptions(AirMapMarker.java:236)
      4. com.airbnb.android.react.maps.AirMapMarker.addToMap(AirMapMarker.java:258)
      5. com.airbnb.android.react.maps.AirMapView.addFeature(AirMapView.java:398)
      6. com.airbnb.android.react.maps.AirMapManager.addView(AirMapManager.java:277)
      7. com.airbnb.android.react.maps.AirMapManager.addView(AirMapManager.java:29)
      7 frames
    3. com.facebook.react
      ReactChoreographer$ReactChoreographerDispatcher.doFrame
      1. com.facebook.react.uimanager.NativeViewHierarchyManager.manageChildren(NativeViewHierarchyManager.java:394)
      2. com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:175)
      3. com.facebook.react.uimanager.UIViewOperationQueue$2.run(UIViewOperationQueue.java:782)
      4. com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:829)
      5. com.facebook.react.uimanager.UIViewOperationQueue.access$1500(UIViewOperationQueue.java:44)
      6. com.facebook.react.uimanager.UIViewOperationQueue$DispatchUIFrameCallback.doFrameGuarded(UIViewOperationQueue.java:868)
      7. com.facebook.react.uimanager.GuardedChoreographerFrameCallback.doFrame(GuardedChoreographerFrameCallback.java:32)
      8. com.facebook.react.uimanager.ReactChoreographer$ReactChoreographerDispatcher.doFrame(ReactChoreographer.java:131)
      8 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:918)
      2. android.view.Choreographer.doCallbacks(Choreographer.java:695)
      3. android.view.Choreographer.doFrame(Choreographer.java:628)
      4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
      5. android.os.Handler.handleCallback(Handler.java:739)
      6. android.os.Handler.dispatchMessage(Handler.java:95)
      7. android.os.Looper.loop(Looper.java:158)
      8. android.app.ActivityThread.main(ActivityThread.java:7231)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames