Null pointer exception when module resource does not exist
----------------------------------------------------------
Key: HIVEMIND-81
URL: http://nagoya.apache.org/jira/browse/HIVEMIND-81
Project: HiveMind
Type: Bug
Components: framework
Versions: 1.0, 1.1
Reporter: Hal Hildebrand
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) {
return null;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]