2
0

Update SpotBugs.

This commit is contained in:
Maarten Billemont
2021-02-08 14:20:29 -05:00
parent a1264e0f91
commit 963a1222be
5 changed files with 6 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ dependencies {
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
implementation group: 'com.yuvimasory', name: 'orange-extensions', version: '1.3.0'
implementation group: 'com.github.tulskiy', name: 'jkeymaster', version: '1.2'
implementation group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '4.0.0-beta4'
implementation group: 'com.github.spotbugs', name: 'spotbugs-annotations', version: '4.2.1'
compile project( ':masterpassword-model' )
}

View File

@@ -459,7 +459,8 @@ public class UserContentPanel extends JPanel implements State.Listener, MPUser.L
char[] masterPassword = masterPasswordField.getPassword();
MPIdenticon identicon = ((masterPassword != null) && (masterPassword.length > 0))?
user.getAlgorithm().identicon( user.getFullName(), masterPassword ): null;
Arrays.fill( masterPassword, (char) 0 );
if (masterPassword != null)
Arrays.fill( masterPassword, (char) 0 );
Res.ui( () -> {
if (identicon != null) {