maklemenz/errorMailer — pull request #1 by vanniksoftware (2012-07-23 23:07:48+00:00)
Title: Fixed 2 NPE when reading optional application settings.

The documentation mentions the following two mandatory settings:
```
#application.conf
errormailer.from = appName
errormailer.to = you , admin@asd.de, myMail+errors@xd.com
```

It also states that errormailer.sendonprod is true by default.

However, by only setting the two mandatory settings as outlined above, the ErrorMailSender can't be instantiated due to a NPE on line 39:

```
38: prop = Play.configuration.getProperty("errormailer.sendonprod");
39: if (prop.equalsIgnoreCase("false")) {
```
because prop is null. You should probably change line 38 to the following to avoid the NPE:
```
38: prop = Play.configuration.getProperty("errormailer.sendonprod", "true");
```
Cheers,

Mike