Changeset 1867 in josm for trunk/src


Ignore:
Timestamp:
2009-07-28T20:38:12+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3124: NullPointerException after unsuccessful trials to upload data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r1859 r1867  
    468468
    469469                if (retCode != 200)
    470                     throw new OsmApiException(retCode,errorHeader.trim(),responseBody.toString().trim());
     470                    throw new OsmApiException(
     471                            retCode,
     472                            errorHeader == null? null : errorHeader.trim(),
     473                                    responseBody == null ? null : responseBody.toString().trim()
     474                    );
    471475
    472476                return responseBody.toString();
Note: See TracChangeset for help on using the changeset viewer.