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

Minor nullpointer check

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.0
    • 1.1
    • framework
    • None
    • Trying to initialize registry without XML descriptor in place. Windows 2000. JRE 5.0

    Description

      There is a nullpointer when trying to report bug, because bug isn't in XML file (there no XML file found) location of the bug can not be determined.

      May 20, 2005 8:53:52 AM org.apache.hivemind.impl.DefaultErrorHandler error
      SEVERE: Error: null
      java.lang.NullPointerException
      at org.apache.hivemind.parse.AbstractParser.getLocation(AbstractParser.java:158)
      at org.apache.hivemind.parse.DescriptorParser.parse(DescriptorParser.java:1420)
      at org.apache.hivemind.impl.RegistryBuilder.processModule(RegistryBuilder.java:216)
      at ru.bmstu.iu5.secure.test.HibernateMappingTestcase.getRegistry(HibernateMappingTestcase.java:36)
      at ru.bmstu.iu5.secure.test.HibernateMappingTestcase.testGettingRegistry(HibernateMappingTestcase.java:43)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at junit.framework.TestCase.runTest(TestCase.java:154)
      at junit.framework.TestCase.runBare(TestCase.java:127)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zubairov Renat Zubairov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: