UniRegensburg / unsere-app-fur-die-universitat-regensburg-bib-buddy

Bib Buddy - deine App für eine konzentrierte, offene Literaturarbeit!
0 stars 0 forks source link

Delete book with option menu causes an app crash #155

Closed claudia3 closed 3 years ago

claudia3 commented 3 years ago

When a book or multiple books are deleted with the options menu the app crashes when you try to delete another book e.g. with swipe to delete or when you want to change a book. Also the selected items are still selected.

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: de.bibbuddy, PID: 15722
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String de.bibbuddy.Book.getIsbn()' on a null object reference
        at de.bibbuddy.BookFormFragment.setInputText(BookFormFragment.java:105)
        at de.bibbuddy.BookFormFragment.onCreateView(BookFormFragment.java:87)
        at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2950)
        at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:515)
        at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
        at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2177)
        at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2088)
        at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1990)
        at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:524)
        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.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)