mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix NPE once again
This commit is contained in:
@@ -168,8 +168,9 @@ public abstract class DialogWrapper {
|
||||
*/
|
||||
protected DialogWrapper(Project project, boolean canBeParent) {
|
||||
myPeer = createPeer(project, canBeParent);
|
||||
if (myPeer != null) {
|
||||
myPeer.getWindow().addComponentListener(new ComponentAdapter() {
|
||||
final Window window = myPeer.getWindow();
|
||||
if (window != null) {
|
||||
window.addComponentListener(new ComponentAdapter() {
|
||||
@Override
|
||||
public void componentResized(ComponentEvent e) {
|
||||
if (!myResizeInProgress) {
|
||||
|
||||
Reference in New Issue
Block a user