diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-02-03 21:00:05 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-02-03 21:00:05 -0500 |
commit | eb4b70d16e2c3a679de3036260c02ae17483a7b1 (patch) | |
tree | ab343ac197544de72db9eabe403163c0296d2c75 /tools/export.cpp | |
parent | 60fb155c50daaf06319e4d9541fc9585f37e621c (diff) | |
download | mongo-eb4b70d16e2c3a679de3036260c02ae17483a7b1.tar.gz |
npe equiv
Diffstat (limited to 'tools/export.cpp')
-rw-r--r-- | tools/export.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |