> On Oct 12, 2014, at 9:43 AM, Rajeev Kumar <[email protected]> wrote:
> 
>     CBLManager* manager = [self getThreadLocalObjectForKey:@"CBLManager"];
>     if(!manager) {
>         //        manager = [[CBLManager sharedInstance] copy];
>         NSError* error;
>         CBLManager *manager = [[CBLManager alloc] initWithDirectory: 
> CBLManager.defaultDirectory options:NULL error: &error];
> 

You've shadowed the variable 'manager', so after the inner block returns, the 
outer variable 'manager' is still nil.

It should have been pretty easy to catch this by setting a breakpoint and 
stepping through the code looking at the variables.

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1FF1D4AF-00A8-405B-AB4F-75085C84AF59%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to