Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@flybyray

Description

@flybyray

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions