Ignore:
Timestamp:
2016-04-12T13:09:14+02:00 (8 years ago)
Author:
donvip
Message:

fix #josm12751 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/print/src/org/openstreetmap/josm/plugins/print/PrintDialog.java

    r30737 r32144  
    457457            catch (PrinterException ex) {
    458458                String msg = ex.getLocalizedMessage();
    459                 if (msg.length() == 0) {
     459                if (msg == null || msg.length() == 0) {
    460460                    msg = tr("Printing has failed.");
    461461                }
     
    470470        }
    471471    }
    472    
     472
    473473    protected void savePrintSettings() {
    474474        // Save only one printer service attribute: printer name
Note: See TracChangeset for help on using the changeset viewer.