mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
@@ -238,14 +238,14 @@ class UsageViewTreeCellRenderer extends ColoredTreeCellRenderer {
|
||||
public RowLocation isRowVisible(int row, @NotNull Rectangle visibleRect) {
|
||||
Dimension pref;
|
||||
if (cachedPreferredSize == null) {
|
||||
pref = cachedPreferredSize = getPreferredSize();
|
||||
cachedPreferredSize = pref = getPreferredSize();
|
||||
}
|
||||
else {
|
||||
pref = cachedPreferredSize;
|
||||
}
|
||||
pref.width = Math.max(visibleRect.width, pref.width);
|
||||
myRowBoundsCalled = true;
|
||||
final JTree tree = getTree();
|
||||
JTree tree = getTree();
|
||||
final Rectangle bounds = tree == null ? null : tree.getRowBounds(row);
|
||||
myRowBoundsCalled = false;
|
||||
int y = bounds == null ? 0 : bounds.y;
|
||||
|
||||
Reference in New Issue
Block a user