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.DateTime.addDuration #840

Closed
dmfs opened this issue Sep 13, 2019 · 0 comments
Closed

Comments

@dmfs
Copy link
Owner

dmfs commented Sep 13, 2019

java.lang.IllegalArgumentException: 
  at org.dmfs.rfc5545.DateTime.addDuration (DateTime.java:24)
  at org.dmfs.provider.tasks.utils.-$$Lambda$yY_9huNlxst0M6WtMisndX68ZhI.value (-.java:4)
  at org.dmfs.jems.optional.composite.Zipped.value (Zipped.java:56)
  at org.dmfs.jems.optional.decorators.Mapped.value (Mapped.java:54)
  at org.dmfs.jems.single.combined.Backed.value (Backed.java:52)
  at org.dmfs.jems.single.decorators.DelegatingSingle.value (DelegatingSingle.java:42)
  at org.dmfs.jems.single.decorators.DelegatingSingle.value (DelegatingSingle.java:42)
  at org.dmfs.jems.single.decorators.DelegatingSingle.value (DelegatingSingle.java:42)
  at org.dmfs.provider.tasks.processors.tasks.instancedata.Enduring.value (Enduring.java:48)
  at org.dmfs.provider.tasks.processors.tasks.instancedata.Enduring.value (Enduring.java:34)
  at org.dmfs.provider.tasks.processors.tasks.instancedata.Overridden.value (Overridden.java:55)
  at org.dmfs.provider.tasks.processors.tasks.instancedata.Overridden.value (Overridden.java:39)
  at org.dmfs.provider.tasks.processors.tasks.instancedata.Distant.lambda$new$0 (Distant.java:38)
  at org.dmfs.provider.tasks.processors.tasks.instancedata.-$$Lambda$Distant$dcH9UfSvfMN5ADkho_bB1XoWoA8.value (-.java:4)
  at org.dmfs.jems.single.decorators.DelegatingSingle.value (DelegatingSingle.java:42)
  at org.dmfs.provider.tasks.processors.tasks.-$$Lambda$TKgp6VetwLawTvryKBMEgpI-YZY.value (-.java:2)
  at org.dmfs.jems.iterator.decorators.Mapped.next (Mapped.java:70)
  at org.dmfs.jems.optional.adapters.Next.cachedDelegate (Next.java:64) 
  at org.dmfs.jems.optional.adapters.Next.isPresent (Next.java:49)
dmfs added a commit that referenced this issue Sep 13, 2019
…840

Recurring tasks may specify a dtstart and due date (instead of a duration). If the task was an all-day task, we may have tried to add a duration derived from the difference between start and due.
The result was a non-all-day duration (although in most cases being a multiple of 24h) and adding this to an all-day date resulted in an error. It's fixed by converting the duration into a proper
all-day duration.
@dmfs dmfs closed this as completed in 81f5b5a Sep 13, 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