Skip to content

Commit e748ed7

Browse files
jcfrhjmjohnson
authored andcommitted
[commontk] addDecorators: Check for null object
1 parent 60d4ba2 commit e748ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PythonQt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ PythonQtClassInfo* PythonQtPrivate::currentClassInfoForClassWrapperCreation()
15501550

15511551
void PythonQtPrivate::addDecorators(QObject* o, int decoTypes)
15521552
{
1553-
if (o == nullptr)
1553+
if (!o)
15541554
{
15551555
return;
15561556
}

0 commit comments

Comments
 (0)