aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetatype.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetatype.cpp b/sources/shiboken2/ApiExtractor/abstractmetatype.cpp
index 8ad2a937f..5d4375f23 100644
--- a/sources/shiboken2/ApiExtractor/abstractmetatype.cpp
+++ b/sources/shiboken2/ApiExtractor/abstractmetatype.cpp
@@ -685,6 +685,10 @@ AbstractMetaType AbstractMetaType::createVoid()
#ifndef QT_NO_DEBUG_STREAM
void AbstractMetaType::formatDebug(QDebug &debug) const
{
+ if (!isValid()) {
+ debug << "Invalid";
+ return;
+ }
debug << '"' << name() << '"';
if (debug.verbosity() > 2) {
auto te = typeEntry();