Index: /applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java
===================================================================
--- /applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java	(revision 36008)
+++ /applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java	(revision 36009)
@@ -769,5 +769,5 @@
         public void actionPerformed(ActionEvent e) {
             Relation tr = getTurnRestriction();
-            if (tr == null || tr.getDataSet() == null) return;
+            if (tr == null || tr.getDataSet() == null || tr.isDeleted()) return;
             org.openstreetmap.josm.actions.mapmode.DeleteAction.deleteRelation(
                     getLayer(),
Index: /applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsListDialog.java
===================================================================
--- /applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsListDialog.java	(revision 36008)
+++ /applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/list/TurnRestrictionsListDialog.java	(revision 36009)
@@ -270,5 +270,5 @@
 
         protected void deleteRelation(Relation toDelete) {
-            if (toDelete == null)
+            if (toDelete == null || toDelete.getDataSet() == null || toDelete.isDeleted())
                 return;
             org.openstreetmap.josm.actions.mapmode.DeleteAction.deleteRelation(
