From 88fe1c1f9a75a8e080447dc65e1cc54f01183c38 Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Mon, 8 Apr 2024 11:36:29 +0200
Subject: [PATCH] fix

---
 src/nextflow_file.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/nextflow_file.py b/src/nextflow_file.py
index 007503d..1309305 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):
-- 
GitLab