[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bug #13262] swing: BasicListUI.damageLayout does not handle

From: Timo Lindfors
Subject: [commit-cp] [bug #13262] swing: BasicListUI.damageLayout does not handle list==null
Date: Wed, 1 Jun 2005 17:54:07 +0000
User-agent: Elinks


                 Summary: swing: BasicListUI.damageLayout does not handle
                 Project: classpath
            Submitted by: lindi
            Submitted on: Wed 06/01/05 at 17:54
                Category: classpath
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None



Creating a testcase does not seem to be quite trivial for this bug so here's
just a verbal explanation of the problem.

At present BasicListUI.damageLayout does


which obviously crashes if list==null. I am not sure what the actual bug is.
Should we

1) make sure that damageLayout handles the list==null case


2) make sure that damageLayout is never called if list==null?

How BasicListUI.list can be null?

Supposed there is a JList X with BasicListUI Y as the ui. If somebody calls
X.setUI(some_other_UI) then Y.list will be null. Now if somebody resizes Y
then BasicListUI$ComponentHandler.componentResized is called and that calls
damageLayout which will crash because list==null.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]