Manos Chorianopoulos

fix initialize crash

...@@ -250,10 +250,13 @@ typedef void (^FailureResponse)(NSURLSessionDataTask * _Nullable task, NSError * ...@@ -250,10 +250,13 @@ typedef void (^FailureResponse)(NSURLSessionDataTask * _Nullable task, NSError *
250 NSLog(@"restore error: %@", exception.reason); 250 NSLog(@"restore error: %@", exception.reason);
251 251
252 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 252 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
253 + if ([defaults boolForKey:@"NBAppUninstalled"] == YES) {
254 + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
253 self.appUUID = [defaults stringForKey:@"NBAPPUuidUD"]; 255 self.appUUID = [defaults stringForKey:@"NBAPPUuidUD"];
254 self.apiKey = [defaults stringForKey:@"NBAPIKeyUD"]; 256 self.apiKey = [defaults stringForKey:@"NBAPIKeyUD"];
255 self.webId = [defaults stringForKey:@"NBWebIDUD"]; 257 self.webId = [defaults stringForKey:@"NBWebIDUD"];
256 } 258 }
259 + }
257 @finally { 260 @finally {
258 // NSLog(@"Finally condition"); 261 // NSLog(@"Finally condition");
259 } 262 }
......