From 26bb6b79510edcedaf386c8e0d011b5b9e682bf6 Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Wed, 18 Aug 2021 11:19:13 +0200 Subject: [PATCH] #174 - FSes that are only transitively referenced cannot be serialized (#179) - Only generate new ID if ID is actually missing --- cassis/cas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cassis/cas.py b/cassis/cas.py index 430dc00..cf27142 100644 --- a/cassis/cas.py +++ b/cassis/cas.py @@ -590,7 +590,7 @@ def _find_all_fs(self, generate_missing_ids: bool = False) -> Iterable[FeatureSt ts = self.typesystem while openlist: fs = openlist.pop(0) - if generate_missing_ids: + if generate_missing_ids and fs.xmiID is None: fs.xmiID = self._get_next_xmi_id() all_fs[fs.xmiID] = fs