Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Error previewing/using inexistent ringtone #139

Open
takase1121 opened this issue Sep 6, 2020 · 1 comment
Open

Error previewing/using inexistent ringtone #139

takase1121 opened this issue Sep 6, 2020 · 1 comment
Labels

Comments

@takase1121
Copy link

java.lang.NullPointerException at SoundData.java:100
java.lang.NullPointerException

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.Ringtone.setAudioAttributes(android.media.AudioAttributes)' on a null object reference
	at me.jfenn.alarmio.data.SoundData.preview(SoundData.java:100)
	at me.jfenn.alarmio.adapters.SoundsAdapter.lambda$onBindViewHolder$1$SoundsAdapter(SoundsAdapter.java:67)
	at me.jfenn.alarmio.adapters.-$$Lambda$SoundsAdapter$jWF8atWizW-S1VOCSjD2EZ2kY5g.onClick(Unknown Source:4)
	at android.view.View.performClick(View.java:7161)
	at android.view.View.performClickInternal(View.java:7138)
	at android.view.View.access$3500(View.java:811)
	at android.view.View$PerformClick.run(View.java:27419)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:221)
	at android.app.ActivityThread.main(ActivityThread.java:7520)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Device Info

Android Version: 29
Device Manufacturer: Xiaomi
Device Model: Redmi 7A

Steps to Reproduce

  • add a ringtone (external file like ogg)
  • delete the file
  • try to preview the file in Alarm settings
@takase1121 takase1121 changed the title Error previewing inexistent ringtone Error previewing/using inexistent ringtone Sep 8, 2020
@takase1121
Copy link
Author

I've edited this issue to include usage. This morning I was almost late because of this issue.

@fennifith fennifith added the bug label Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants