Changeset 5826 in josm


Ignore:
Timestamp:
2013-04-04T23:46:51+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #8575 - NPE

File:
1 edited

Legend:

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

    r5534 r5826  
    312312            @Override
    313313            public void run() {
    314                 dialog.setInBackgroundPossible(PleaseWaitProgressMonitor.this.taskId != null && Main.isDisplayingMapView());
     314                if (dialog != null) {
     315                    dialog.setInBackgroundPossible(PleaseWaitProgressMonitor.this.taskId != null && Main.isDisplayingMapView());
     316                }
    315317            }
    316318        });
Note: See TracChangeset for help on using the changeset viewer.