]> WPIA git - gigi.git/commitdiff
fix: Proper synchronization when retrieving the preferred name
authorBenny Baumann <BenBE1987@gmx.net>
Sun, 31 Jul 2016 12:16:54 +0000 (14:16 +0200)
committerBenny Baumann <BenBE1987@gmx.net>
Sun, 31 Jul 2016 15:03:14 +0000 (17:03 +0200)
Change-Id: Iee2cbba9e94fa774ad4142b15a5d3b9e65afb5c1

src/org/cacert/gigi/dbObjects/User.java

index aaab09053fc6228436f2d7c8a69e5679f1139608..61f347a4e90b380e70802d9871641da1ead0161f 100644 (file)
@@ -396,7 +396,7 @@ public class User extends CertificateOwner {
 
     }
 
 
     }
 
-    public Name getPreferredName() {
+    public synchronized Name getPreferredName() {
         return preferredName;
     }
 
         return preferredName;
     }