SecUSo / privacy-friendly-finance-manager

GNU General Public License v3.0
46 stars 22 forks source link

Crash without adding transactions title #46

Open JahidFariz opened 1 year ago

JahidFariz commented 1 year ago

To create a new transactions without adding the title name cause this app crash.

k3b commented 1 year ago

the problem is reproduceble on my android-10 device:

here is the crash log:

FATAL EXCEPTION: main
Process: org.secuso.privacyfriendlyfinancemanager, PID: 19865
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
    at org.secuso.privacyfriendlyfinance.activities.viewmodel.TransactionDialogViewModel.submit(TransactionDialogViewModel.java:235)
    at org.secuso.privacyfriendlyfinance.activities.dialog.TransactionDialog$5.onClick(TransactionDialog.java:155)
    at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7615)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
k3b commented 1 year ago

fixed in https://github.com/SecUSo/privacy-friendly-finance-manager/pull/47