Minor nullpointer check
-----------------------

         Key: HIVEMIND-125
         URL: http://issues.apache.org/jira/browse/HIVEMIND-125
     Project: HiveMind
        Type: Improvement
  Components: framework  
    Versions: 1.0    
 Environment: Trying to initialize registry without XML descriptor in place. 
Windows 2000. JRE 5.0
    Reporter: Renat Zubairov
    Priority: Minor


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)


-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to