Description
When building the registry, if you provide a resource which does not exist, there is a null pointer exception in the AbstractParser when it is looking for the location to report the error. This null pointer exception masks the real problem - i.e. that the resource does not exist. The fix is simple:
in org.apache.hivemind.parse.AbstractParser, at the beginning of the method: protected Location getLocation(), add:
protected Location getLocation()
{
// Added by HSH to prevent null pointer exception when location is null
if (_locator == null)
Attachments
Issue Links
- is duplicated by
-
HIVEMIND-125 Minor nullpointer check
- Closed