Fix NPE once again

This commit is contained in:
Roman Shevchenko
2012-02-28 21:39:43 +01:00
parent 9c98296c19
commit 12fc535b4b
@@ -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) {