Changeset 9627 in josm


Ignore:
Timestamp:
2016-01-25T11:22:14+01:00 (5 years ago)
Author:
stoecker
Message:

fix a Coverity issuea and r9626

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSet.java

    r9626 r9627  
    12521252        beginUpdate();
    12531253        try {
    1254             bool changed = cleanupDeleted(nodes.iterator();
    1255             if (cleanupDeleted(ways.iterator()) {
     1254            boolean changed = cleanupDeleted(nodes.iterator());
     1255            if (cleanupDeleted(ways.iterator())) {
    12561256                changed = true;
    12571257            }
  • trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java

    r9309 r9627  
    185185    private void handleIOException(final ProgressMonitor monitor, IOException e, String details) {
    186186        final String msg = e.getMessage();
    187         if (details.isEmpty()) {
     187        if (details == null || details.isEmpty()) {
    188188            Main.error(e.getClass().getSimpleName()+": " + msg);
    189189        } else {
Note: See TracChangeset for help on using the changeset viewer.