From kde-commits Sat Dec 31 20:41:52 2005 From: Richard Dale Date: Sat, 31 Dec 2005 20:41:52 +0000 To: kde-commits Subject: playground/bindings/kimono Message-Id: <1136061712.576037.12991.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=113606172216807 SVN commit 492975 by rdale: * The 'char *' from C# string marshaller wasn't checking for a null value M +5 -1 qt3handlers.cpp --- trunk/playground/bindings/kimono/qt3handlers.cpp #492974:492975 @@ -536,7 +536,11 @@ switch(m->action()) { case Marshall::FromObject: { - m->item().s_voidp = (*IntPtrToCharStar)(m->var().s_class); + if (m->var().s_class == 0) { + m->item().s_voidp = 0; + } else { + m->item().s_voidp = (*IntPtrToCharStar)(m->var().s_class); + } } break; case Marshall::ToObject: