mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics for null lookup item bounds (EA-23182)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user