diff --git a/python/dune/perftool/pdelab/localoperator.py b/python/dune/perftool/pdelab/localoperator.py
index 1e25b7da9dbbe02b367f4bb9668f2a59879b444e..40075ae97ff58798f3569737ecff103c366ba9f6 100644
--- a/python/dune/perftool/pdelab/localoperator.py
+++ b/python/dune/perftool/pdelab/localoperator.py
@@ -665,7 +665,7 @@ class LoopyKernelMethod(ClassMember):
                 content.append('  ' + 'HP_TIMER_STOP({});'.format(timer_name))
 
         content.append('}')
-        ClassMember.__init__(self, content, name=kernel.name)
+        ClassMember.__init__(self, content, name=kernel.name if kernel is not None else "")
 
 
 def cgen_class_from_cache(tag, members=[]):