diagnostics for null lookup item bounds (EA-23182)

This commit is contained in:
peter.gromov
2010-11-11 17:27:05 +03:00
parent 99de36a147
commit 3fd7562bb7
@@ -698,6 +698,7 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable {
int index = myList.getSelectedIndex();
Rectangle itmBounds = myList.getCellBounds(index, index);
if (itmBounds == null){
LOG.error("No bounds for " + index + "; size=" + myList.getModel().getSize());
return null;
}
Point layeredPanePoint=SwingUtilities.convertPoint(myList,itmBounds.x,itmBounds.y,getComponent());