Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null reference when DesignDocManager is using CouchbaseClientConfiguration #2

Merged
merged 1 commit into from Dec 23, 2014

Conversation

jamesantrobus
Copy link
Contributor

I created a new DesignDocManager and passed in an instance of CouchbaseClientConfiguration on the constructor.

When calling the create method on the DesignDocManager instance a null reference exception is thrown.

System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=CouchbaseModelViews.Framework
StackTrace:
   at CouchbaseModelViews.Framework.DesignDocManager.Create(String designDocName, String designDoc, Action`1 callback) in c:\code\couchbase-model-views\src\CouchbaseModelViews.Framework\DesignDocManager.cs:line 61
   at CouchbaseModelViews.Framework.DesignDocManager.Create(IDictionary`2 designDocs, Action`1 callback) in c:\code\couchbase-model-views\src\CouchbaseModelViews.Framework\DesignDocManager.cs:line 83
   at CouchbaseModelViewsGenerator.Program.Main(String[] args) in c:\code\couchbase-model-views\src\CouchbaseModelViewsGenerator\Program.cs:line 48

When using this constructor the _config field is never set, probably because we've passed in a CouchbaseClientConfiguration rather than a CouchbaseClientSection. Whatever the reason, the exception is thrown later on when we try and get the Bucket from the configuration.

jeffrymorris added a commit that referenced this pull request Dec 23, 2014
Null reference when DesignDocManager is using CouchbaseClientConfiguration
@jeffrymorris jeffrymorris merged commit 0afc8d3 into couchbaselabs:master Dec 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants