AndInTheClouds / chordreader2

Search for, display, transpose and save chords on your phone, that you get from the interwebs. :notes:
GNU General Public License v3.0
33 stars 8 forks source link

Bug: App crashes when adding the first setlist #16

Closed wtimme closed 1 year ago

wtimme commented 1 year ago

Steps to reproduce

  1. Remove all setlists or install the app for the first time
  2. Start the app
  3. Add a setlist, choose a name and tap "OK"

Expected behaviour: The new setlist is saved and the app continues to run.

Observed behaviour: The new setlist seems to have been saved, but the app crashes.

Logs

FATAL EXCEPTION: OpenSetlistHandlerThread
                                                                                                    Process: org.hollowbamboo.chordreader2, PID: 2216
                                                                                                    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.replace(java.lang.CharSequence, java.lang.CharSequence)' on a null object reference
                                                                                                        at org.hollowbamboo.chordreader2.helper.SaveFileHelper.lambda$openSetlist$0(SaveFileHelper.java:348)
                                                                                                        at org.hollowbamboo.chordreader2.helper.SaveFileHelper$$ExternalSyntheticLambda0.run(Unknown Source:6)
                                                                                                        at android.os.Handler.handleCallback(Handler.java:938)
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                        at android.os.Looper.loop(Looper.java:223)
                                                                                                        at android.os.HandlerThread.run(HandlerThread.java:67)