mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE on first layout (IDEA-81813)
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ public class ScrollableSingleRowLayout extends SingleRowLayout {
|
||||
protected void recomputeToLayout(SingleRowPassInfo data) {
|
||||
calculateRequiredLength(data);
|
||||
clampScrollOffsetToBounds(data);
|
||||
if (myScrollSelectionInViewPending || !data.layoutSize.equals(myLastSingRowLayout.layoutSize)) {
|
||||
if (myScrollSelectionInViewPending || myLastSingRowLayout == null || !data.layoutSize.equals(myLastSingRowLayout.layoutSize)) {
|
||||
myScrollSelectionInViewPending = false;
|
||||
doScrollSelectionInView(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user