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

[#2154] fix NPE on @On annotation #1219

Closed
flybyray opened this issue Feb 26, 2018 · 1 comment
Closed

[#2154] fix NPE on @On annotation #1219

flybyray opened this issue Feb 26, 2018 · 1 comment
Milestone

Comments

@flybyray
Copy link
Contributor

cron = Play.configuration.getProperty(cron);

evaluates to null, if there is no application configuration.

The @On annotation does not allow a default value which could be provided for getProperty. Therefore the default should be "".

Reason:

cron = Expression.evaluate(cron, cron).toString();

will throw a NPE if cron is null.

@xael-fry
Copy link
Member

Merged #1220
Thanks

@xael-fry xael-fry added this to the 1.5.1 milestone Feb 28, 2018
@xael-fry xael-fry changed the title [#2154] NPE [#2154] fix NPE on @On annotation Jul 12, 2018
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

2 participants