GnuCash-Pocket / gnucash-android

GnuCash Pocket – a mobile companion app for Gnucash desktop application (https://github.com/Gnucash/gnucash). Developed independently of GnuCash.
Apache License 2.0
87 stars 17 forks source link

Commodity error when report #188

Open pnemonic78 opened 1 month ago

pnemonic78 commented 1 month ago
Exception java.lang.RuntimeException: An error occurred while executing doInBackground()
  at android.os.AsyncTask$4.done (AsyncTask.java:415)
  at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:381)
  at java.util.concurrent.FutureTask.setException (FutureTask.java:250)
  at java.util.concurrent.FutureTask.run (FutureTask.java:269)
  at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:305)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644)
  at java.lang.Thread.run (Thread.java:1012)
Caused by java.lang.NullPointerException:
  at org.gnucash.android.model.Account.setCommodity
  at org.gnucash.android.model.Account.<init> (Account.kt:117)
  at org.gnucash.android.db.adapter.AccountsDbAdapter.buildSimpleAccountInstance (AccountsDbAdapter.java:444)
  at org.gnucash.android.db.adapter.AccountsDbAdapter.getSimpleAccountList (AccountsDbAdapter.java:532)
  at org.gnucash.android.ui.report.ReportsOverviewFragment.getData (ReportsOverviewFragment.java:185)
  at org.gnucash.android.ui.report.ReportsOverviewFragment.generateReport (ReportsOverviewFragment.java:149)
  at org.gnucash.android.ui.report.BaseReportFragment$1.doInBackground (BaseReportFragment.java:300)
  at org.gnucash.android.ui.report.BaseReportFragment$1.doInBackground (BaseReportFragment.java:291)
  at android.os.AsyncTask$3.call (AsyncTask.java:394)
  at java.util.concurrent.FutureTask.run (FutureTask.java:264)