@@ -177,7 +177,7 @@ def copy_frame(frame_id, source_db, target_db):
177
177
target_db .add_define_default (
178
178
copy .deepcopy (attribute ), copy .deepcopy (source_db .frame_defines [attribute ].defaultValue ))
179
179
# only default value exists in source but is different to default value in target
180
- if attribute not in frame .attributes and \
180
+ if attribute not in frame .attributes and frame . attribute ( attribute , source_db ) is not None and \
181
181
frame .attribute (attribute , source_db ) != frame .attribute (attribute , target_db ):
182
182
target_db .frame_by_id (frame .arbitration_id ).add_attribute (attribute , frame .attribute (attribute , source_db ))
183
183
# update enum data types if needed:
@@ -202,7 +202,7 @@ def copy_frame(frame_id, source_db, target_db):
202
202
target_db .signal_defines [attribute ].values .append (copy .deepcopy (temp_attr ))
203
203
target_db .signal_defines [attribute ].update ()
204
204
# only default value exists in source but is different to default value in target
205
- if attribute not in sig .attributes and \
205
+ if attribute not in sig .attributes and sig . attribute ( attribute , source_db ) is not None and \
206
206
sig .attribute (attribute , source_db ) != sig .attribute (attribute , target_db ):
207
207
target_db .frame_by_id (frame .arbitration_id ).signal_by_name (sig .name ).add_attribute (attribute , sig .attribute (attribute , source_db ))
208
208
0 commit comments