0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

print handling of null MINOR

This commit is contained in:
Eliot Horowitz 2009-05-21 10:09:38 -04:00
parent ed74bbf25a
commit 303ac1bd03

View File

@ -244,6 +244,14 @@ printjson = function(x){
shellPrintHelper = function( x ){
if ( typeof( x ) == "undefined" )
return;
if ( x == null ){
print( "null" );
return;
}
if ( typeof x != "object" )
return print( x );