Ignore:
Timestamp:
17.06.2009 18:21:46 (3 years ago)
Author:
Gubaer
Message:

fixes #2748: I tried to upload a road with about 100 nodes. I got a message "An unexpected exception occurred. This is always a coding error. ..."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/UploadAction.java

    r1677 r1679  
    527527        // For any other exception just notify the user 
    528528        // 
    529         String msg = e.getMessage().substring(0,Math.min(80, e.getMessage().length())); 
    530         if (msg.length() < e.getMessage().length()) { 
    531             msg += " ..."; 
     529        String msg; 
     530        if (e.getMessage() == null) { 
     531            msg = e.toString(); 
     532        } else { 
     533            msg = e.getMessage(); 
    532534        } 
    533535        e.printStackTrace(); 
     
    538540                JOptionPane.ERROR_MESSAGE 
    539541        ); 
    540  
    541542    } 
    542543 
Note: See TracChangeset for help on using the changeset viewer.