浏览代码

Merge branch 'master' into develop

# Conflicts:
#	main/ant-kit/pom.xml
#	main/commons/pom.xml
#	main/keychain/pom.xml
#	main/launcher/pom.xml
#	main/pom.xml
#	main/uber-jar/pom.xml
#	main/ui/pom.xml
Sebastian Stenzel 6 年之前
父节点
当前提交
ffd3981f36
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main/ui/src/main/java/org/cryptomator/ui/controls/SecPasswordField.java

+ 2 - 2
main/ui/src/main/java/org/cryptomator/ui/controls/SecPasswordField.java

@@ -66,8 +66,8 @@ public class SecPasswordField extends PasswordField {
 	}
 
 	private void growContentIfNeeded() {
-		if (this.length > content.length) {
-			char[] newContent = new char[content.length + GROW_BUFFER_SIZE];
+		if (length > content.length) {
+			char[] newContent = new char[length + GROW_BUFFER_SIZE];
 			System.arraycopy(content, 0, newContent, 0, content.length);
 			swipe();
 			this.content = newContent;