src/doc: introduce option --no-render in HTML phase.
[nit.git] / lib / mongodb / mongodb.nit
index 2372179..1e9b9bd 100644 (file)
@@ -601,6 +601,7 @@ class MongoCollection
        fun find(query: JsonObject): nullable JsonObject do
                assert is_alive
                var c = native.find(query.to_bson.native)
+               assert is_alive # FIXME used to avoid segfault (so `self` isn't garbage collected to soon)
                if c == null then return null
                var cursor = new MongoCursor(c)
                if cursor.is_ok then