Skip to content

java.lang.NullPointerException #36

@MichaelJokAr

Description

@MichaelJokAr
com.facebook.react.bridge.JSApplicationIllegalArgumentException:Error while updating property 'options' of a view managed by: RCTAMapView
--
 com.facebook.react.uimanager.ViewManagersPropertyCache$PropSetter.updateViewProp(ViewManagersPropertyCache.java:90)
 ......
 Caused by:
 java.lang.NullPointerException:Attempt to invoke virtual method 'android.content.res.Resources android.app.Activity.getResources()' on a null object reference
 com.reactnativecomponent.amap.RCTAMapView.getImageId(RCTAMapView.java:238)
 com.reactnativecomponent.amap.RCTAMapView.addMarker(RCTAMapView.java:428)
 com.reactnativecomponent.amap.RCTAMapView.addLocationMarker(RCTAMapView.java:219)
 com.reactnativecomponent.amap.RCTAMapView.setCenterLocation(RCTAMapView.java:355)
 com.reactnativecomponent.amap.RCTAMapManager.setOptions(RCTAMapManager.java:41)
 java.lang.reflect.Method.invoke(Native Method)
 com.facebook.react.uimanager.ViewManagersPropertyCache$PropSetter.updateViewProp(ViewManagersPropertyCache.java:78)
 com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.setProperty(ViewManagerPropertyUpdater.java:123)
 com.facebook.react.uimanager.ViewManagerPropertyUpdater.updateProps(ViewManagerPropertyUpdater.java:42)
 com.facebook.react.uimanager.ViewManager.updateProperties(ViewManager.java:36)
 com.facebook.react.uimanager.NativeViewHierarchyManager.updateProperties(NativeViewHierarchyManager.java:125)
 com.facebook.react.uimanager.UIViewOperationQueue$UpdatePropertiesOperation.execute(UIViewOperationQueue.java:92)
 com.facebook.react.uimanager.UIViewOperationQueue$2.run(UIViewOperationQueue.java:784)
 com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:831)
 com.facebook.react.uimanager.UIViewOperationQueue.access$1500(UIViewOperationQueue.java:45)
 com.facebook.react.uimanager.UIViewOperationQueue$3.run(UIViewOperationQueue.java:809)
 android.os.Handler.handleCallback(Handler.java:808)
 android.os.Handler.dispatchMessage(Handler.java:101)
 android.os.Looper.loop(Looper.java:166)
 android.app.ActivityThread.main(ActivityThread.java:7425)
 java.lang.reflect.Method.invoke(Native Method)
 com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions