Skip to content

Crash - Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference #566

@licaon-kter

Description

@licaon-kter

Description

2025.02 (65) F-Droid

Using https://f-droid.org/packages/cl.coders.faketraveler/ for location, not sure if important

Steps to Reproduce

Crash when pressing random buttons (eg. Notes, Voice, Camera) after location is acquired

Logs or Console Errors (if applicable)

java.lang.RuntimeException: Error receiving broadcast Intent { act=net.osmtracker.intent.TRACK_WP flg=0x10 pkg=net.osmtracker (has extras) } in net.osmtracker.service.gps.GPSLogger$1@eb29e46
	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1818)
	at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$mcNAAl1SQ4MyJPyDg8TJ2x2h0Rk(Unknown Source:0)
	at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
	at android.os.Handler.handleCallback(Handler.java:959)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8601)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference
	at net.osmtracker.db.DataHelper.wayPoint(DataHelper.java:189)
	at net.osmtracker.service.gps.GPSLogger$1.onReceive(GPSLogger.java:130)
	at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1810)
	... 10 more

Screenshots or Videos (Optional)

No response

Android Version

Android 14

Device Model

AOSP based

Submission Checklist

  • I am reporting an issue, not asking a question.
  • I have updated to the latest OSMTracker version, and the issue still exists.
  • I have checked the Q&A Discussions, open and closed issues, and the wiki, but did not find a solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions