This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 109464 - [tests] NPE from watches tests
Summary: [tests] NPE from watches tests
Status: VERIFIED DUPLICATE of bug 109465
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 07:17 UTC by ehucka
Modified: 2007-08-03 08:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-07-12 07:17:28 UTC
Watches functional automated tests fails by NPE:

java.lang.NullPointerException
	at gui.debuggercore.Watches.checkTTVLine(Watches.java:536)
	at gui.debuggercore.Watches.testWatchesFiltersBasic(Watches.java:212)
	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:597)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:59)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:286)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:224)
	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:302)
	at org.netbeans.jellytools.JellyTestCase.runBare(JellyTestCase.java:122)
	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:120)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:165)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:169)
	at org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:124)
	at org.netbeans.xtest.plugin.ide.MainWithExec.run(MainWithExec.java:85)
	at org.netbeans.xtest.plugin.ide.Main$3.run(Main.java:300)
	at java.lang.Thread.run(Thread.java:619)
Comment 1 ehucka 2007-07-12 07:59:22 UTC
Automated tests assume there is non null property or its value in the Type column of Watches table.
I put there an assert to check this state.
The null type is caused by issue 109465.

*** This issue has been marked as a duplicate of 109465 ***
Comment 2 ehucka 2007-08-03 08:57:57 UTC
verified duplicate