Changeset 4756 in josm


Ignore:
Timestamp:
2011-12-31T15:00:49+01:00 (13 years ago)
Author:
jttt
Message:

Fix #7211 NPE when updating plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java

    r4754 r4756  
    287287            @Override
    288288            public void run() {
    289                 dialog.setInBackgroundPossible(PleaseWaitProgressMonitor.this.taskId != null && Main.isDisplayingMapView());
    290                 reset();
    291                 getDialog();
     289                if (dialog != null) {
     290                    dialog.setInBackgroundPossible(PleaseWaitProgressMonitor.this.taskId != null && Main.isDisplayingMapView());
     291                    reset();
     292                    getDialog();
     293                }
    292294            }
    293295        });
Note: See TracChangeset for help on using the changeset viewer.