ra0o0f / arangoclient.net

ArangoDB .NET Client with LINQ support
Apache License 2.0
99 stars 37 forks source link

Null exception for db.CreateStatement #115

Open tangkhaiphuong opened 5 years ago

tangkhaiphuong commented 5 years ago

If database setting have defined rules, then create a statement without put options, the exception will be thrown Bug from here: https://github.com/ra0o0f/arangoclient.net/blob/020a2a3a606dc7c301377836c7a531aca07256bb/src/ArangoDB.Client/ArangoDatabase.cs#L197

This case options always null. Should change to: data.Options.Optimizer.Rules.Add(r);