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

Bug/Exception: NoMethodError: undefined method `begin' for nil:NilClass #380

Open
bragboy opened this issue Jul 2, 2018 · 1 comment
Open
Labels

Comments

@bragboy
Copy link

bragboy commented Jul 2, 2018

This works

Chronic.parse("five years after today")
=> 2023-07-02 17:30:00 +0200

However this does not!

Chronic.parse("five years after 11 May 2017")
NoMethodError: undefined method `begin' for nil:NilClass
from /.../chronic-0.10.2/lib/chronic/repeaters/repeater_year.rb:48:in `offset'

I am fine if it returns nil, but not an exception

@davispuh davispuh added the bug label Jul 3, 2018
@davispuh
Copy link
Collaborator

davispuh commented Jul 3, 2018

It's fixed/works in my rewrite branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants