即使恢复到先前的工作状态,应用程序仍然崩溃

时间:2019-07-10 15:31:42

标签: java crash geojson mapbox-android

在应用程序中添加了一些新代码后,它崩溃了。恢复到之前的状态(一切正常时)后,它仍然会崩溃。这是我得到的错误-不用说,它发生在我几天没有接触过的方法周围。请帮忙!

2019-07-10 22:17:53.601 10741-10741/com.mapbox.storefinder E/Mbgl-MapChangeReceiver: Exception in onDidFinishLoadingStyle
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.mapbox.geojson.FeatureCollection.features()' on a null object reference
        at com.mapbox.storelocator.activity.MapActivity$2.onStyleLoaded(MapActivity.java:1306)
        at com.mapbox.mapboxsdk.maps.MapboxMap.getStyle(MapboxMap.java:106)
        at com.mapbox.storelocator.activity.MapActivity.initStoreLocationIconSymbolLayer(MapActivity.java:1294)
        at com.mapbox.storelocator.activity.MapActivity.access$600(MapActivity.java:94)
        at com.mapbox.storelocator.activity.MapActivity$1$1.onStyleLoaded(MapActivity.java:185)
        at com.mapbox.mapboxsdk.maps.MapboxMap.notifyStyleLoaded(MapboxMap.java:847)
        at com.mapbox.mapboxsdk.maps.MapboxMap.onFinishLoadingStyle(MapboxMap.java:208)
        at com.mapbox.mapboxsdk.maps.MapView$MapCallback.onDidFinishLoadingStyle(MapView.java:1215)
        at com.mapbox.mapboxsdk.maps.MapChangeReceiver.onDidFinishLoadingStyle(MapChangeReceiver.java:196)
        at com.mapbox.mapboxsdk.maps.NativeMapView.onDidFinishLoadingStyle(NativeMapView.java:1035)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:325)
        at android.os.Looper.loop(Looper.java:142)
        at android.app.ActivityThread.main(ActivityThread.java:6541)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
2019-07-10 22:17:53.602 10741-10741/com.mapbox.storefinder A/libc: /usr/local/google/buildbot/src/android/ndk-release-r19/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type jni::PendingJavaException" failed
2019-07-10 22:17:53.605 10741-10741/com.mapbox.storefinder A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 10741 (box.storefinder)

0 个答案:

没有答案