Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-81

Null pointer exception when module resource does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0, 1.1
    • 1.1
    • framework
    • None

    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)

      { return null; }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hellblazer Hal Hildebrand
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: