mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Notebook inlay: add logging to prevent NPE
GitOrigin-RevId: c59be4b171c45ecfaa27c13e0ec779f4f3ef3c18
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6ae71617a8
commit
1224ab28e1
@@ -34,7 +34,14 @@ fun EditorEx.addComponentInlay(
|
||||
priority,
|
||||
offset,
|
||||
)
|
||||
)!!
|
||||
)
|
||||
if (inlay == null) {
|
||||
if (isDisposed) {
|
||||
throw IllegalStateException("Editor is disposed")
|
||||
}
|
||||
throw IllegalStateException(
|
||||
"Component is null for $component, $isRelatedToPrecedingText, $showAbove, $showWhenFolded, $priority, $offset")
|
||||
}
|
||||
|
||||
updateUiOnParentResizeImpl(component.parent as JComponent, WeakReference(component))
|
||||
component.revalidate()
|
||||
|
||||
Reference in New Issue
Block a user