0
Not a bug

crash trying to view fuel graphs

Alessandro Lucchet 3 years ago • updated 3 years ago 4

Hi,

here is a bug I reported several time on google play:

the apo crashes when I try to open the fuel graphs.

Here is the logcat.

Looks like an error while formatting a date. I tried to change the date format, but it's the same



01-12 22:02:50.522 27958 28003 E AndroidRuntime: Process: com.kajda.fuelio, PID: 27958

01-12 22:02:50.522 27958 28003 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference

01-12 22:02:50.522 27958 28003 E AndroidRuntime: 	at java.util.Calendar.setTime(Calendar.java:1195)

01-12 22:02:50.522 27958 28003 E AndroidRuntime: 	at java.text.SimpleDateFormat.formatImpl(SimpleDateFormat.java:518)

01-12 22:02:50.522 27958 28003 E AndroidRuntime: 	at java.text.SimpleDateFormat.format(SimpleDateFormat.java:820)

01-12 22:02:50.522 27958 28003 E AndroidRuntime: 	at java.text.DateFormat.format(DateFormat.java:314)

01-12 22:02:50.522 27958 28003 E AndroidRuntime: 	at com.kajda.fuelio.Charts.ChartMonthlyCosts(SourceFile:741)

01-12 22:02:50.522 27958 28003 E AndroidRuntime: 	at com.kajda.fuelio.Charts$MyPagerAdapter$5.run(SourceFile:1808)

01-12 22:02:50.522 27958 28003 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:818)

if you need my data to reproduce the bug, you can download it from here


anyway.... great app! it's really useful and well done!

I hope you can fix this problem (i also just send a bug report: my device: z3compact with lollipop 5.1)


thanks😉

Alessandro

Not a bug

Hi,


I've checked your file.

You've got errors in it.


Probably you made your (or edited) CSV manually.


At the top of the CSV you've got date format: yyyy-MM-dd

but some of the items are added with format yyyy-M-dd.


If you'll changed them everything will be fine.


Under review

Thanks for that. I'll take a look at your file tomorrow.

You are right, I have initially imported the data from a CSV I made.

In the historic panel, I saw the right data, so I thought I did it well.

Anyway! I have fixed the data from the database and now all works correctly :)

Thank you for the support and for the app!

Byebye

Alessandro