Changeset 5222 in josm


Ignore:
Timestamp:
May 8, 2012 2:08:35 AM (13 months ago)
Author:
Don-vip
Message:

fix #7649 - NPE when deleting deleting photolayer with dialog open

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

    r4242 r5222  
    717717                case CANCEL: 
    718718                { 
    719                     for (ImageEntry ie : yLayer.data) { 
    720                         ie.tmp = null; 
     719                    if (yLayer != null) { 
     720                        for (ImageEntry ie : yLayer.data) { 
     721                            ie.tmp = null; 
     722                        } 
     723                        yLayer.updateBufferAndRepaint(); 
    721724                    } 
    722                     yLayer.updateBufferAndRepaint(); 
    723725                    break; 
    724726                } 
Note: See TracChangeset for help on using the changeset viewer.