Skip to content

Commit

Permalink
Merge branch 'fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Aug 26, 2023
2 parents bd4b433 + 2d9f1b2 commit 8c17c33
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ public void onHiddenChanged(boolean hidden) {
private boolean elementDeleted() {
StorageDelegator d = App.getDelegator();
for (PropertyEditorData p : loadData) {
if (OsmElement.STATE_DELETED == d.getOsmElement(p.type, p.osmId).getState()) {
final OsmElement e = d.getOsmElement(p.type, p.osmId);
if (e == null || OsmElement.STATE_DELETED == e.getState()) {
return true;
}
}
Expand Down

0 comments on commit 8c17c33

Please sign in to comment.