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

java.lang.IllegalArgumentException org.dmfs.rfc5545.recur.RecurrenceRule.iterator #850

Closed
dmfs opened this issue Sep 17, 2019 · 1 comment

Comments

@dmfs
Copy link
Owner

dmfs commented Sep 17, 2019

java.lang.IllegalArgumentException: 
  at org.dmfs.rfc5545.recur.RecurrenceRule.iterator (RecurrenceRule.java:2118)
  at org.dmfs.rfc5545.recur.RecurrenceRule.iterator (RecurrenceRule.java:2093)
  at org.dmfs.rfc5545.recurrenceset.RecurrenceRuleAdapter.getIterator (RecurrenceRuleAdapter.java:103)
  at org.dmfs.rfc5545.recurrenceset.RecurrenceSet.iterator (RecurrenceSet.java:120)
  at org.dmfs.provider.tasks.utils.TaskInstanceIterable.iterator (TaskInstanceIterable.java:63)
  at org.dmfs.provider.tasks.utils.InstanceValuesIterable.iterator (InstanceValuesIterable.java:96)
  at org.dmfs.provider.tasks.utils.Limited.iterator (Limited.java:47)
  at org.dmfs.jems.iterable.decorators.Mapped.iterator (Mapped.java:46)
  at org.dmfs.jems.iterable.composite.Diff.iterator (Diff.java:50)
  at org.dmfs.provider.tasks.processors.tasks.Instantiating.updateMasterInstances (Instantiating.java:256)
  at org.dmfs.provider.tasks.processors.tasks.Instantiating.update (Instantiating.java:123)
  at org.dmfs.provider.tasks.processors.tasks.Instantiating.update (Instantiating.java:50)
  at org.dmfs.provider.tasks.TaskDatabaseHelper.onUpgrade (TaskDatabaseHelper.java:867)
  at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked (SQLiteOpenHelper.java:400)
  at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase (SQLiteOpenHelper.java:298)
  at org.dmfs.provider.tasks.TaskProvider.onAccountsUpdated (TaskProvider.java:1396)
  at android.accounts.AccountManager$18.run (AccountManager.java:2224)
  at android.os.Handler.handleCallback (Handler.java:873)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:214)
  at android.os.HandlerThread.run (HandlerThread.java:65)
@dmfs
Copy link
Owner Author

dmfs commented Sep 17, 2019

Looks like this user has a floating time task with an absolutely terminated recurrence rule in his/her task list.

dmfs added a commit that referenced this issue Sep 22, 2019
This commit (temporarily) allows tasks with floating start or due and absolute until part in the RRULE and vice versa.
Apparently such tasks exist and we didn't validate this condition. So for now we tolerate this issue until we can be sure
the database won't contain such tasks.
@dmfs dmfs closed this as completed in 8c8c9fb Sep 23, 2019
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