<Swing Dev> [8] Review request for 6505523: NullPointerException in BasicTreeUI when a node is removed by expansion listener
    Alexander Scherbatiy 
    alexandr.scherbatiy at oracle.com
       
    Tue Jan 10 10:55:29 UTC 2012
    
    
  
Hello,
This is a request to review the fix for the issue:
6505523 NullPointerException in BasicTreeUI when a node is removed by 
expansion listener
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6505523
The webrev is http://cr.openjdk.java.net/~alexsch/6505523/webrev.01/
The fix checks that the path bounds do not become null for the 
isActualPath() method between actions: mouse pressed, tree node deleted, 
mouse released.
The bounds are also checked in the ensureRowsAreVisible() method in the 
same way as it fixed for the issue
4909150 WindowsTreeUI can cause NullPointerException occasionally
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4909150
The test case for the issue is added.
Thanks,
Alexandr.
    
    
More information about the swing-dev
mailing list