From: SourceForge.net <no...@so...> - 2008-11-03 15:57:58
|
Bugs item #1768839, was opened at 2007-08-06 22:51 Message generated for change (Settings changed) made by karianna You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1768839&group_id=25576 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: User Interface Group: To be fixed For 5.16.0 >Status: Closed >Resolution: Fixed Priority: 4 Private: No Submitted By: James Dempsey (jdempsey) Assigned to: Nobody/Anonymous (nobody) Summary: NPE on Table Header Click Initial Comment: Whenever a table header is clicked, the following stacktrace is produced. java.lang.NullPointerException at javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseClic ked(Unknown Source) at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at pcgen.gui.PCGen_Frame1$WaitCursorEventQueue.dispatchEvent(PCGen_Frame 1.java:3465) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) This occurs in both the 5.12 line and the trunk running under Java 1.6 ---------------------------------------------------------------------- Comment By: Martijn Verburg (karianna) Date: 2008-04-15 13:14 Message: Logged In: YES user_id=252169 Originator: NO Still exists in 1.6.0_05, we're unlikely to see 1.6.0_06 before we go 5.14, so moving this to 6.0 ---------------------------------------------------------------------- Comment By: Martijn Verburg (karianna) Date: 2008-02-12 15:39 Message: Logged In: YES user_id=252169 Originator: NO Ah, I was looking at the wrong 'close' code on the sun site. Apparently this has only been fixed for 1.7, not the 1.6 line (it doesn't appear they've back ported the fix). ---------------------------------------------------------------------- Comment By: Martijn Verburg (karianna) Date: 2008-02-12 14:52 Message: Logged In: YES user_id=252169 Originator: NO I was unable to get Eclipse to stop at a break point in: javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseClicked(Unknown Source) The source code there reads: public void mouseClicked(MouseEvent e) { if (e.getClickCount() % 2 == 1 && SwingUtilities.isLeftMouseButton(e)){ JTable table = header.getTable(); RowSorter sorter = table.getRowSorter(); if (sorter != null) { int columnIndex = header.columnAtPoint(e.getPoint()); if (columnIndex != -1) { columnIndex = table.convertColumnIndexToModel( columnIndex); sorter.toggleSortOrder(columnIndex); } } } } I analysed the event at pcgen.gui.PCGen_Frame1 and saw that the event.x event.y and event.clickCount were all not null, so it's unlikely (unless overridden) that it those values that are causing the problem. If anyone is able to get the JDK to stop in debug it would go a long way to resolving this. - K ---------------------------------------------------------------------- Comment By: Martijn Verburg (karianna) Date: 2008-02-12 14:10 Message: Logged In: YES user_id=252169 Originator: NO This is still occurring with latest alpha and JDK 1.6.0_03, I'm downloading the JDK source to see if I can see what line it's breaking on in the JDK itself. - K ---------------------------------------------------------------------- Comment By: Martijn Verburg (karianna) Date: 2008-02-11 14:52 Message: Logged In: YES user_id=252169 Originator: NO I have JDK1.6.0_04 installed, I'll re-test - K ---------------------------------------------------------------------- Comment By: James Dempsey (jdempsey) Date: 2007-08-07 10:04 Message: Logged In: YES user_id=558288 Originator: YES I have hidden the error in 5.12.1 (unless debug mode is turned on) as the functionality still works. It could be related to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6523638 ---------------------------------------------------------------------- Comment By: Martijn Verburg (karianna) Date: 2007-08-07 07:40 Message: Logged In: YES user_id=252169 Originator: NO James does this need to be patched for the 5.12.1 release? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1768839&group_id=25576 |