ergerodr / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

JTreeFixture#selectPath throws nullpointer exception when root is invisible #293

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The method JTreeFixture#selectPath("Main node/sub-node") throws the
following exception when the root is invisible.

Caused by: java.lang.NullPointerException
    at javax.swing.JComponent.scrollRectToVisible(JComponent.java:3060)
    at org.fest.swing.driver.JTreeDriver$9.executeInEDT(JTreeDriver.java:356)
    at org.fest.swing.driver.JTreeDriver$9.executeInEDT(JTreeDriver.java:1)
    at org.fest.swing.edt.GuiQuery.run(GuiQuery.java:42)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    at org.fest.swing.edt.GuiActionRunner.execute(GuiActionRunner.java:73)
    at
org.fest.swing.driver.JTreeDriver.scrollToPathToSelect(JTreeDriver.java:353)
    at
org.fest.swing.driver.JTreeDriver.selectMatchingPath(JTreeDriver.java:346)
    at org.fest.swing.driver.JTreeDriver.selectPath(JTreeDriver.java:207)
    at org.fest.swing.fixture.JTreeFixture.selectPath(JTreeFixture.java:233)

Original issue reported on code.google.com by ginoj...@gmail.com on 31 Jan 2009 at 12:30

GoogleCodeExporter commented 8 years ago
Thanks Gino!

Original comment by Alex.Rui...@gmail.com on 3 Feb 2009 at 5:48

GoogleCodeExporter commented 8 years ago
Issue 300 has been merged into this issue.

Original comment by Alex.Rui...@gmail.com on 4 Feb 2009 at 11:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Fixed. Changes in http://code.google.com/p/fest/source/detail?r=2259 (r2259).

Thanks,
-Alex

Original comment by Alex.Rui...@gmail.com on 5 Feb 2009 at 7:08

GoogleCodeExporter commented 8 years ago
Issue migrated to http://kenai.com/jira/browse/FEST-15

Original comment by Alex.Rui...@gmail.com on 14 Feb 2009 at 9:48

GoogleCodeExporter commented 8 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-17

Original comment by Alex.Rui...@gmail.com on 2 Mar 2009 at 6:54