seed r37 - trunk/libseed



Author: racarr
Date: Sun Oct 26 04:39:19 2008
New Revision: 37
URL: http://svn.gnome.org/viewvc/seed?rev=37&view=rev

Log:
Better fix.


Modified:
   trunk/libseed/seed-types.c

Modified: trunk/libseed/seed-types.c
==============================================================================
--- trunk/libseed/seed-types.c	(original)
+++ trunk/libseed/seed-types.c	Sun Oct 26 04:39:19 2008
@@ -28,7 +28,8 @@
 
 static gboolean seed_value_is_gobject(SeedValue value)
 {
-		if (!JSValueIsObject(eng->context, value))
+		if (!JSValueIsObject(eng->context, value) ||
+			JSValueIsNull(eng->context, value))
 			
 				return FALSE;
 	
@@ -945,7 +946,6 @@
 	
 	if(!seed_value_is_gobject(val))
 	{
-		seed_value_wrong_type();
 		return NULL;
 	}	
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]