JakeWharton / DiskLruCache

Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.
http://jakewharton.github.io/DiskLruCache
Apache License 2.0
5.79k stars 1.18k forks source link

IllegalStateException in Editor#newOutputStream() #42

Open bergstr11 opened 11 years ago

bergstr11 commented 11 years ago

I am using the latest code from github and am seeing an IllegalStateException from the following code in DiskLruCache.java, lines 770 - 772:

if (entry.currentEditor != this) { throw new IllegalStateException(); }

this happens quite rarely (seen it for the first time after several months, with 200 people using my app), and I have no indication what may cause it. No comments, no exception message. Thats why I choose this path of creating an issue. I'd appreciate any help, and would also suggest better error reporting