Revision: 29847
          http://sourceforge.net/p/bibdesk/svn/29847
Author:   hofman
Date:     2025-11-18 22:16:26 +0000 (Tue, 18 Nov 2025)
Log Message:
-----------
Initialize lock. Should override designated initializer

Modified Paths:
--------------
    trunk/bibdesk/BDSKServerInfo.m

Modified: trunk/bibdesk/BDSKServerInfo.m
===================================================================
--- trunk/bibdesk/BDSKServerInfo.m      2025-11-18 22:04:48 UTC (rev 29846)
+++ trunk/bibdesk/BDSKServerInfo.m      2025-11-18 22:16:26 UTC (rev 29847)
@@ -106,6 +106,8 @@
         name = [aName copy];
         database = [aDbase copy];
         passwordInKeychain = NO;
+        if ([self isKindOfClass:[BDSKMutableServerInfo class]] == NO)
+            passwordLock = [[BDSKReadWriteLock alloc] init];
         if ([self isEntrez] || [self isISI] || [self isDBLP]) {
             host = nil;
             port = nil;
@@ -153,6 +155,8 @@
         name = [decoder decodeObjectOfClass:[NSString class] forKey:NAME_KEY];
         database = [decoder decodeObjectOfClass:[NSString class] 
forKey:DATABASE_KEY];
         passwordInKeychain = NO;
+        if ([self isKindOfClass:[BDSKMutableServerInfo class]] == NO)
+            passwordLock = [[BDSKReadWriteLock alloc] init];
         if ([self isEntrez] || [self isISI] || [self isDBLP]) {
             host = nil;
             port = nil;
@@ -421,8 +425,8 @@
     return set;
 }
 
-- (instancetype)init {
-    self = [super init];
+- (instancetype)initWithType:(NSString *)aType name:(NSString *)aName 
database:(NSString *)aDbase host:(NSString *)aHost port:(NSString *)aPort 
options:(NSDictionary *)opts {
+    self = [super initWithType:aType name:aName database:aDbase host:aHost 
port:aPort options:opts];
     if (self) {
         passwordLock = nil;
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to