microg / microg/GmsCore

[net.lovoo.android] - mapbox crash

Open
#3,024 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
14.6k
Forks
3.2k
Avg merge
12d 11h
Merged PRs (30d)
4

Description

Affected app
Name: Lovoo
Package id: net.lovoo.android

Describe the bug
The app crashes with fatal exception when the first button in the bottom left is clicked. (neighbourhood/region) it should show a map.

To Reproduce
Steps to reproduce the behavior:

  1. Open the app
  2. Click on neighbourhood/region
  3. Wait some seconds
  4. See error:

FATAL EXCEPTION: main
Process: net.lovoo.android, PID: 21527
java.lang.NullPointerException: Parameter specified as non-null is null: method org.microg.gms.maps.mapbox.StylesKt.toNonNull, parameter
at org.microg.gms.maps.mapbox.StylesKt.toNonNull(Unknown Source:2)
at org.microg.gms.maps.mapbox.StylesKt.apply(Styles.kt:119)
at org.microg.gms.maps.mapbox.StylesKt.getStyle(Styles.kt:79)
at org.microg.gms.maps.mapbox.StylesKt.getStyle$default(Styles.kt:42)
at org.microg.gms.maps.mapbox.GoogleMapImpl.applyMapStyle(GoogleMap.kt:421)
at org.microg.gms.maps.mapbox.GoogleMapImpl.initMap(GoogleMap.kt:675)
at org.microg.gms.maps.mapbox.GoogleMapImpl.$r8$lambda$SopKtjQYYLh9Z4xMPOlCv4DMlsk(Unknown Source:0)
at org.microg.gms.maps.mapbox.GoogleMapImpl$$ExternalSyntheticLambda6.onMapReady(Unknown Source:2)
at com.mapbox.mapboxsdk.maps.MapView$MapCallback.onMapReady(MapView.java:1322)
at com.mapbox.mapboxsdk.maps.MapView$MapCallback.initialised(MapView.java:1308)
at com.mapbox.mapboxsdk.maps.MapView.initialiseMap(MapView.java:203)
at com.mapbox.mapboxsdk.maps.MapView.access$800(MapView.java:65)
at com.mapbox.mapboxsdk.maps.MapView$6.run(MapView.java:355)
at android.os.Handler.handleCallback(Handler.java:991)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8934)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)

Expected behavior
A map should show up

System
Android Version: 15
Custom ROM: LineageOS 22

microG
microG Core version: 0.3.9.250932
microG Self-Check results: All ticked

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash by opening Lovoo's neighbourhood/region view on Android, then inspect the stack-trace entry points in org.microg.gms.maps.mapbox.Styles.kt, especially lines 42, 79, and 119, and GoogleMap.kt. Done means the map view opens without the reported NullPointerException; no test file is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.