Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crash when change view by in report section #1

Closed
muhammadarif1 opened this issue May 30, 2019 · 2 comments
Closed

app crash when change view by in report section #1

muhammadarif1 opened this issue May 30, 2019 · 2 comments
Assignees
Labels

Comments

@muhammadarif1
Copy link

EXPECTED BEHAVIOR

when the user changes the appearance of the report from "view value" to "use percent value" this application will still work properly and will display report data in accordance with the wishes of the user

ACTUAL BEHAVIOR

when the user changes the appearance of the report from "view value" to "use percent value" this application will crash and stop working

STEPS TO REPRODUCE

  • install and open the app
  • click "report" option
  • scroll to the right side to "incomes by articles or expenses by articles
  • click eye icon
  • change view by "view values" to "use percent values"
  • see errors
    devices
  • phone models: oppo neo 7
  • os : android 6.1

BUG RECORDING

https://www.youtube.com/watch?v=MYMrVP3fQ_g&feature=youtu.be
logcat

Process: io.github.zwieback.familyfinance, PID: 13191
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.github.mikephil.charting.data.PieData.setDrawValues(boolean)' on a null object reference
	at io.github.zwieback.familyfinance.business.chart.fragment.PieChartFragment.onApplyDisplay(PieChartFragment.java:160)
	at io.github.zwieback.familyfinance.business.chart.fragment.PieChartFragment.onApplyDisplay(PieChartFragment.java:40)
	at io.github.zwieback.familyfinance.business.chart.activity.ChartActivity.onApplyDisplay(ChartActivity.java:150)
	at io.github.zwieback.familyfinance.business.chart.dialog.ChartDisplayDialog.lambda$onCreateDialog$0(ChartDisplayDialog.java:53)
	at io.github.zwieback.familyfinance.business.chart.dialog.-$$Lambda$ChartDisplayDialog$3JuCWsAV3m9zaJu55iVYBsSndyU.onClick(lambda)
	at android.support.v7.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
	at android.os.Handler.dispatchMessage(Handler.java:111)
	at android.os.Looper.loop(Looper.java:218)
	at android.app.ActivityThread.main(ActivityThread.java:5657)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:990)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:785)```
@zwieback
Copy link
Owner

Good day!

Thank you for a such detailed description of crash reasons.

I have already fixed this issue according to the description provided. The fix will be released in the next release.

@zwieback
Copy link
Owner

Fixed in this commit.

@zwieback zwieback self-assigned this Jun 6, 2019
@zwieback zwieback added the bug label Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants