Fixed a NPE and updated build.xml to include line numbers in stack traces