From eb4b70d16e2c3a679de3036260c02ae17483a7b1 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Tue, 3 Feb 2009 21:00:05 -0500 Subject: npe equiv --- tools/export.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/export.cpp b/tools/export.cpp index e573ad6dd1b..fd7525d3232 100644 --- a/tools/export.cpp +++ b/tools/export.cpp @@ -91,7 +91,8 @@ public: if ( i != fields.begin() ) cout << ","; const BSONElement & e = obj[i->c_str()]; - cout << e.jsonString( TenGen , false ); + if ( ! e.eoo() ) + cout << e.jsonString( TenGen , false ); } cout << endl; } -- cgit v1.2.1