[ http://issues.apache.org/jira/browse/HIVEMIND-81?page=comments#action_59438 ] Knut Wannheden commented on HIVEMIND-81: ----------------------------------------
Hal, I get the impression that HiveMind checks for the avaiability of the resource at an earlier stage, so I don't see how this could happen. Could you please provide a test case or verify if this problem is also present in 1.1-alpha-1? Thanks. > Null pointer exception when module resource does not exist > ---------------------------------------------------------- > > Key: HIVEMIND-81 > URL: http://issues.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://issues.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]
