Our environment supports both ANT and Maven builds. When run with Maven the Trac plugin works as expected but when run with ANT we experiance a NPE in the following scenerio
1) The project is not yet in Sonar (First Build for this project)
2) ANT is used instead of Maven.
I've attached a patch fix that skips the test if the pom is missing. Let me know if this approach is acceptable. All tests pass.