Changeset 18584 in josm for trunk/src/org


Ignore:
Timestamp:
2022-11-06T19:25:10+01:00 (18 months ago)
Author:
Don-vip
Message:

fix error-prone compilation warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/IRelationEditorActionAccess.java

    r18563 r18584  
    8080        boolean isUploadInProgress = MainApplication.getLayerManager().getLayersOfType(OsmDataLayer.class)
    8181                .stream().anyMatch(OsmDataLayer::isUploadInProgress);
    82         if (isUploadInProgress || oldRelation != null && oldRelation.getDataSet() != null && oldRelation.getDataSet().isLocked()) {
     82        if (isUploadInProgress || (oldRelation != null && oldRelation.getDataSet() != null && oldRelation.getDataSet().isLocked())) {
    8383            // If the dataset is locked, then we cannot change the relation. See JOSM #22024.
    8484            // We should also avoid changing the relation if there is an upload in progress. See JOSM #22268/#22398.
Note: See TracChangeset for help on using the changeset viewer.