Android Question play services maps crash app

Discussion in 'Android Questions' started by arnold steger, May 17, 2019 at 11:00 PM.

  1. arnold steger

    arnold steger Member Licensed User

    I use the function google map in my app. I have always worked with an older version of b4a, now I made an update to the 9 to use the runtime permission.
    I had some difficulties with the installation, but now I can compile the old working project again without error.
    Unfortunately, I still have a problem with Appstart. I don't understand where is the problem.

    Code:
    Logger verbunden mit:  bq Aquaris X Pro
    --------- beginning of crash
    --------- beginning of main
    Added Separator
    Added Separator
    Added Separator
    Added Separator
    Added Separator
    Added Separator
    Added Separator
    ** 
    Activity (main) Resume **
    ** 
    Service (sgps) Start **
    WakeLock already held.
    java.lang.RuntimeException: java.lang.NullPointerException: Attempt 
    to invoke virtual method 'java.lang.Object anywheresoftware.b4a.objects.collections.Map.Get(java.lang.Object)' on a null object reference
        at anywheresoftware.b4a.objects.MapFragmentWrapper$1.onMapReady(MapFragmentWrapper.java:197)
        at com.google.android.gms.maps.zzab.zza(Unknown Source:
    2)
        at com.google.android.gms.maps.internal.zzaq.dispatchTransaction(Unknown Source:
    12)
        at com.google.android.gms.internal.maps.zzb.onTransact(Unknown Source:
    12)
        at android.os.Binder.transact(Binder.java:
    627)
        at hp.b(:com.google.android.gms.dynamite_mapsdynamite@
    17122051@17.1.22 (040408-245988633):14)
        at com.google.android.gms.maps.internal.be.a(:com.google.android.gms.dynamite_mapsdynamite@
    17122051@17.1.22 (040408-245988633):4)
        at com.google.maps.api.android.lib6.impl.bl.run(:com.google.android.gms.dynamite_mapsdynamite@
    17122051@17.1.22 (040408-245988633):4)
        at android.os.Handler.handleCallback(Handler.java:
    790)
        at android.os.Handler.dispatchMessage(Handler.java:
    99)
        at android.os.Looper.loop(Looper.java:
    164)
        at android.app.ActivityThread.main(ActivityThread.java:
    6543)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:
    438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    807)
    Caused by: java.lang.NullPointerException: Attempt 
    to invoke virtual method 'java.lang.Object anywheresoftware.b4a.objects.collections.Map.Get(java.lang.Object)' on a null object reference
        at anywheresoftware.b4a.objects.MapFragmentWrapper$1.onMapReady(MapFragmentWrapper.java:182)
        ... 
    14 more
    ** 
    Activity (main) Create, isFirst = true **
    LocationManager has been initialized.
    Added Separator
    Added Separator
    Added Separator
    Added Separator
    Added Separator
    Added Separator
    ** 
    Activity (main) Resume **
    LocationManager has been initialized.
    *** 
    Service (sgps) Create ***
    GPS-Status true
    ** 
    Service (sgps) Start **
    java.lang.RuntimeException: java.lang.NullPointerException: Attempt 
    to invoke virtual method 'java.lang.Object anywheresoftware.b4a.objects.collections.Map.Get(java.lang.Object)' on a null object reference
        at anywheresoftware.b4a.objects.MapFragmentWrapper$1.onMapReady(MapFragmentWrapper.java:197)
        at com.google.android.gms.maps.zzab.zza(Unknown Source:
    2)
        at com.google.android.gms.maps.internal.zzaq.dispatchTransaction(Unknown Source:
    12)
        at com.google.android.gms.internal.maps.zzb.onTransact(Unknown Source:
    12)
        at android.os.Binder.transact(Binder.java:
    627)
        at hp.b(:com.google.android.gms.dynamite_mapsdynamite@
    17122051@17.1.22 (040408-245988633):14)
        at com.google.android.gms.maps.internal.be.a(:com.google.android.gms.dynamite_mapsdynamite@
    17122051@17.1.22 (040408-245988633):4)
        at com.google.maps.api.android.lib6.impl.bl.run(:com.google.android.gms.dynamite_mapsdynamite@
    17122051@17.1.22 (040408-245988633):4)
        at android.os.Handler.handleCallback(Handler.java:
    790)
        at android.os.Handler.dispatchMessage(Handler.java:
    99)
        at android.os.Looper.loop(Looper.java:
    164)
        at android.app.ActivityThread.main(ActivityThread.java:
    6543)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:
    438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    807)
    Caused by: java.lang.NullPointerException: Attempt 
    to invoke virtual method 'java.lang.Object anywheresoftware.b4a.objects.collections.Map.Get(java.lang.Object)' on a null object reference
        at anywheresoftware.b4a.objects.MapFragmentWrapper$1.onMapReady(MapFragmentWrapper.java:182)
        ... 
    14 more
     
  2. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice