[pygobject/invoke-rewrite] [gi] handle hash being NULL
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/invoke-rewrite] [gi] handle hash being NULL
- Date: Mon, 31 Jan 2011 21:51:56 +0000 (UTC)
commit 4a67f45880433905de33632fe0c32a13b44c0b33
Author: John (J5) Palmieri <johnp redhat com>
Date: Mon Jan 31 16:51:37 2011 -0500
[gi] handle hash being NULL
gi/pygi-argument.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index e426e63..e69acf4 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -3710,6 +3710,12 @@ _pygi_marshal_out_ghash (PyGIInvokeState *state,
hash_ = arg->v_pointer;
+ if (hash_ == NULL) {
+ py_obj = Py_None;
+ Py_INCREF (py_obj);
+ return py_obj;
+ }
+
py_obj = PyDict_New();
if (py_obj == NULL)
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]