HMS Map Kit demo provides an example of intergrating HMS Map Android SDK. Personalizing how your map displays and interacts with your users tailors their experience to them
Scenario:
HMS Map Kit version = 5.0.1.301
Markers clustering = true
Open a fragment with a map
Markers are added
We do not allow the map to load, immediately press the "Back" button
We get an application crash
java.lang.NullPointerException: Attempt to invoke virtual method 'com.huawei.map.mapapi.model.Marker com.huawei.map.mapapi.HWMap.addMarker(com.huawei.map.mapapi.model.MarkerOptions)' on a null object reference
at com.huawei.hms.maps.provider.markercluster.clustering.view.e$d.b(:10711)
at com.huawei.hms.maps.provider.markercluster.clustering.view.e$e.handleMessage(:1880)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8347)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
Scenario: HMS Map Kit version = 5.0.1.301 Markers clustering = true