phingofficial/phing — pull request #223 by giorgiosironi (2013-07-25 11:57:49+00:00)
Title: Setting location on exceptions only if present

Without this change, exceptions throw in AdHocTasks cause the build to fail with:
```
[PHP Error] Argument 1 passed to BuildException::setLocation() must be an instance of Location, null given, called in /usr/share/php/phing/Task.php on line 265 and defined [line 119 of /usr/share/php/phing/BuildException.php]
```
instead of showing the original error.