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

An error found while back to home page after a note saved #1

Open
shihabmi7 opened this issue Sep 20, 2018 · 0 comments
Open

An error found while back to home page after a note saved #1

shihabmi7 opened this issue Sep 20, 2018 · 0 comments

Comments

@shihabmi7
Copy link

We first thanks for create this awesome working demo with newest android arch component room.

after i forked the git and run the application in android 8.1 orio; i found an error .

09-20 17:12:49.027 9717-9830/com.an.room E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-2 Process: com.an.room, PID: 9717 java.lang.ArrayIndexOutOfBoundsException: length=19; index=-1 at android.icu.text.DigitList.isIntegral(DigitList.java:289) at android.icu.text.DecimalFormat.parse(DecimalFormat.java:2034) at android.icu.text.DecimalFormat.parse(DecimalFormat.java:1931) at java.text.DecimalFormat.parse(DecimalFormat.java:804) at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:2353) at java.text.SimpleDateFormat.parseInternal(SimpleDateFormat.java:1615) at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1528) at java.text.DateFormat.parse(DateFormat.java:360) at com.an.room.util.TimestampConverter.fromTimestamp(TimestampConverter.java:21) at com.an.room.dao.DaoAccess_Impl$4.compute(DaoAccess_Impl.java:218) at com.an.room.dao.DaoAccess_Impl$4.compute(DaoAccess_Impl.java:174) at android.arch.lifecycle.ComputableLiveData$2.run(ComputableLiveData.java:100) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 09

It seems error occurred while converting time from timestamp to date. hope you will see that happened exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant