Project: SWT
Bug 267270 NPE in Composite.nextValidKeyView
Reported: 2009-03-05 16:25:43 | Status: resolved fixed

I was running the Text test cases to test some code I wrote and notice a failing test with the following exception. java.lang.NullPointerException at org.eclipse.swt.widgets.Composite.nextValidKeyView(Composite.java:844) at org.eclipse.swt.widgets.Display.windowDelegateProc(Display.java:4196) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSView.setHidden(NSView.java:257) at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:1530) at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1488) at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text.test_isVisible(Test_org_eclipse_swt_widgets_Text.java:899) at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Control.runTest(Test_org_eclipse_swt_widgets_Control.java:824) at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Scrollable.runTest(Test_org_eclipse_swt_widgets_Scrollable.java:86) at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text.runTest(Test_org_eclipse_swt_widgets_Text.java:1452) at junit.framework.TestCase.runBare(TestCase.java:130) 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 junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java