diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp
index 3959d953f92df47497a306686fdfeb28c59e23fd..8f371bb28701d36ecfcf8fd873950d40e2b67ca2 100644
--- a/src/plugins/cppeditor/cpphoverhandler.cpp
+++ b/src/plugins/cppeditor/cpphoverhandler.cpp
@@ -165,6 +165,9 @@ static QString buildHelpId(const FullySpecifiedType &type,
         }
     }
 
+    if (! name)
+        return QString();
+
     Overview overview;
     overview.setShowArgumentNames(false);
     overview.setShowReturnTypes(false);