Timer already cancelled when setting TTL in app

Hi All,

We are getting following error while setting the Expiry in the app in CBL 1.4.1. :

java.lang.IllegalStateException: Timer already cancelled.\n\tat java.util.Timer.sched(Timer.java:397)\n\tat java.util.Timer.schedule(Timer.java:193)\n\tat com.couchbase.lite.Database.scheduleDocumentExpiration(Database.java:2579)\n\tat com.couchbase.lite.Database.purgeExpiredDocuments(Database.java:2600)\n\tat com.couchbase.lite.Database.access$800(Database.java:74)\n\tat com.couchbase.lite.Database$11.run(Database.java:2583)\n\tat java.util.TimerThread.mainLoop(Timer.java:555)\n\tat java.util.TimerThread.run(Timer.java:505)\n

To handle this we have wrapped setting TTL in try catch. Is it a good strategy?

Regards
Pankaj Sharma

File a bug report on couchbase-lite-java-core on Github.

We have enterprise support the bug is filed there. Thanks @jens