summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-02-03 21:00:05 -0500
committerEliot Horowitz <eliot@10gen.com>2009-02-03 21:00:05 -0500
commiteb4b70d16e2c3a679de3036260c02ae17483a7b1 (patch)
treeab343ac197544de72db9eabe403163c0296d2c75 /tools
parent60fb155c50daaf06319e4d9541fc9585f37e621c (diff)
downloadmongo-eb4b70d16e2c3a679de3036260c02ae17483a7b1.tar.gz
npe equiv
Diffstat (limited to 'tools')
-rw-r--r--tools/export.cpp3
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;
}