There is an error in your code: https://github.com/Fazerty/jbfex-addon/blob/master/src/main/java/org/jbfex/addon/commands/JbfexMailCommand.java#L129 You are returning a null ProjectFactory, that's why the error happens.