zorgluf / souvenirs-android

Android app for souvenirs albums
GNU General Public License v3.0
10 stars 5 forks source link

crash error #22

Closed jkbentley4 closed 8 months ago

jkbentley4 commented 8 months ago

Here is an error message that came up. Thanks in advance for checking into it.

type: crash
osVersion: google/raven/raven:14/UQ1A.240105.002/2024011600:user/release-keys
package: fr.nuage.souvenirs:30
process: fr.nuage.souvenirs
processUptime: 40238 + 195 ms
installer: com.android.packageinstaller

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    at fr.nuage.souvenirs.model.ImageElement.deleteImageFile(ImageElement.java:253)
    at fr.nuage.souvenirs.model.ImageElement.clear(ImageElement.java:263)
    at fr.nuage.souvenirs.model.Page.clear(Page.java:175)
    at fr.nuage.souvenirs.model.Album.delPage(Album.java:359)
    at fr.nuage.souvenirs.model.Album.delPage(Album.java:352)
    at fr.nuage.souvenirs.model.Page.delete(Page.java:169)
    at fr.nuage.souvenirs.viewmodel.PageViewModel.delete(PageViewModel.java:115)
    at fr.nuage.souvenirs.view.EditPageFragment.lambda$onCreateOptionsMenu$21$fr-nuage-souvenirs-view-EditPageFragment(EditPageFragment.java:371)
    at fr.nuage.souvenirs.view.EditPageFragment$$ExternalSyntheticLambda1.onMenuItemClick(Unknown Source:2)
    at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:154)
    at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:985)
    at androidx.appcompat.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
    at android.widget.AdapterView.performItemClick(AdapterView.java:330)
    at android.widget.AbsListView.performItemClick(AbsListView.java:1265)
    at android.widget.AbsListView$PerformClick.run(AbsListView.java:3278)
    at android.widget.AbsListView$3.run(AbsListView.java:4244)
    at android.os.Handler.handleCallback(Handler.java:958)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:205)
    at android.os.Looper.loop(Looper.java:294)
    at android.app.ActivityThread.main(ActivityThread.java:8279)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
    at com.android.internal.os.ExecInit.main(ExecInit.java:49)
    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)
zorgluf commented 8 months ago

Thanks for the report. Fixed on the dev branch, will be include on the next release. In the meanwhile, the workaround is to set an image to the album.

jkbentley4 commented 8 months ago

Thanks for fixing this so fast.

-------- Original Message -------- On Jan 28, 2024, 3:27 PM, zorgluf wrote:

Thanks for the report. Fixed on the dev branch, will be include on the next release. In the meanwhile, the workaround is to set an image to the album.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>