playframework/play — pull request #361 by stianl (2011-10-18 12:11:01+00:00)
Title: NPE fix

I am initializing a camelcontext in a Bootstrap class (annotated with @OnApplicationStart) and I configured a route like
```
from("sftp://someftphost").to(new FileProcessor());
```

The FileProcessor simply implements the Processor interface and in the process implementation I tried to manipulate entities by using JPA.em() and Entity.save() et.c. This failed due to NPEs two places in the JPAConfig file. Something is still not quite right since I have to manage transactions myself, but I can live with that for now.