diff --git a/src/nextflow_file.py b/src/nextflow_file.py
index 007503d474181769d0734adada6749847261f663..1309305cc29772111dc606b6074ef7b0bb934b0a 100644
--- a/src/nextflow_file.py
+++ b/src/nextflow_file.py
@@ -102,7 +102,10 @@ class Nextflow_File(Nextflow_Building_Blocks):
         if(self.first_file):
             return self.workflow.get_processes_annotation()
         else:
-            return self.origin.get_processes_annotation()
+            if(self.origin==None):
+                return None
+            else:
+                return self.origin.get_processes_annotation()
         
     def get_display_info(self):
         if (self.first_file):