Changeset 4756 in josm


Ignore:
Timestamp:
Dec 31, 2011 3:00:49 PM (17 months 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.