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

SoftCachedObject cannot be cast to ArrayList #11

Open
adammo1990 opened this issue Aug 28, 2015 · 0 comments
Open

SoftCachedObject cannot be cast to ArrayList #11

adammo1990 opened this issue Aug 28, 2015 · 0 comments

Comments

@adammo1990
Copy link

I'm using your library in my app and sometimes I get ClassCastException as below while trying to get ArrayList from cache. Usually it works ok but without any reason it may crash. When I turn on app again suddenly it works without exception.

com.game fatal error : com.iainconnor.objectcache.SoftCachedObject cannot be cast to java.util.ArrayList
java.lang.ClassCastException: com.iainconnor.objectcache.SoftCachedObject cannot be cast to java.util.ArrayList
at com.game.MainFragment$3.onSuccess(MainFragment.java:1)
at com.iainconnor.objectcache.CacheManager$GetAsyncTask.onPostExecute(CacheManager.java:220)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5146)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
at dalvik.system.NativeStart.main(Native Method)

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