NullPointer when rule is triggered

the rule get´s triggered at the correct time but throws this error
2017-03-31 22:13:03.088 [ERROR] [.automation.core.internal.RuleEngine] - Fail to execute rule ‘[rule_2, null]’: java.lang.NullPointerException

Running the rule manually by clicking the play icon works fine.