|
@@ -145,6 +145,11 @@ def transformation_add_MT(source_metamodels, target_metamodels, operation_name,
|
|
|
def transformation_add_AL(source_metamodels, target_metamodels, operation_name, code, callback=None):
|
|
|
INPUT("transformation_add_AL", None, [source_metamodels, target_metamodels, operation_name, code])
|
|
|
context = OUTPUT()
|
|
|
+
|
|
|
+ if context is None:
|
|
|
+ # In case the source and target metamodels are empty, the context will be None, indicating that we are finished already (no callbacks allowed)
|
|
|
+ return
|
|
|
+
|
|
|
if callback is not None:
|
|
|
callback(context)
|
|
|
INPUT("exit", context, [])
|