You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me none of the global function for managing offline regions work. The same issue also happens in the with the example app from the current master branch.
They fail with:
/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): Failed to handle method call
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): java.lang.NullPointerException: Attempt to invoke interface method 'android.content.Context io.flutter.plugin.common.PluginRegistry$Registrar.context()' on a null object reference
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at com.mapbox.mapboxgl.GlobalMethodHandler.onMethodCall(GlobalMethodHandler.java:61)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:693)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at android.os.MessageQueue.next(MessageQueue.java:335)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at android.os.Looper.loop(Looper.java:183)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/MethodChannel#plugins.flutter.io/mapbox_gl( 9206): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I added some debug code to onMethodCall in the GlobalMethodHandler
For me none of the global function for managing offline regions work. The same issue also happens in the with the example app from the current master branch.
They fail with:
I added some debug code to
onMethodCall
in theGlobalMethodHandler
this leads to the following output:
This might be related to #488 as the new plugin api does not provide a regsistar to the method handler:
new
old
Trying to get the context from the registrar that is null, is the cause for the error in
final Context context = registrar.context();
The text was updated successfully, but these errors were encountered: