summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-01-07 18:58:15 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:51:45 -0300
commitf4f48519ec2dade5a016b87bc089e90a0caf71a4 (patch)
tree12c26126eeb7087c22449ed695ccccca3ee7d70b
parent4c79d1e8cd54b3bf7dc0d2ea3d5f5b000a862fc7 (diff)
Fix Qvariant to Cpp conversion.
Fixes bug #589 Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--PySide/QtCore/qvariant_conversions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/PySide/QtCore/qvariant_conversions.h b/PySide/QtCore/qvariant_conversions.h
index 0b89534b..283cf4f4 100644
--- a/PySide/QtCore/qvariant_conversions.h
+++ b/PySide/QtCore/qvariant_conversions.h
@@ -19,6 +19,8 @@ struct Converter<QVariant>
if (PyObject_TypeCheck(type, &SbkObjectType_Type)) {
SbkObjectType* sbkType = reinterpret_cast<SbkObjectType*>(type);
const char* typeName = Shiboken::ObjectType::getOriginalName(sbkType);
+ if (!typeName)
+ return 0;
bool valueType = '*' != typeName[qstrlen(typeName) - 1];
// Do not convert user type of value