Make sure that null params aren't traversed. Fixes #5794.
[jquery.git] / src / ajax.js
index 3ef2d4f..3c199af 100644 (file)
@@ -665,7 +665,7 @@ jQuery.extend({
                                                }
                                        });
                                        
-                               } else if ( !traditional && typeof obj === "object" ) {
+                               } else if ( !traditional && obj != null && typeof obj === "object" ) {
                                        // Serialize object item.
                                        jQuery.each( obj, function( k, v ) {
                                                buildParams( prefix + "[" + k + "]", v );