Sebastian Stenzel преди 6 години
родител
ревизия
ec5e8bba30
променени са 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;