From ec5e8bba303f00102e209ec68dcf9ec693fcc69b Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Sat, 16 Feb 2019 11:35:27 +0100 Subject: [PATCH] fixes #826 --- .../java/org/cryptomator/ui/controls/SecPasswordField.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/ui/src/main/java/org/cryptomator/ui/controls/SecPasswordField.java b/main/ui/src/main/java/org/cryptomator/ui/controls/SecPasswordField.java index c2774c345..8a6d0539e 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/controls/SecPasswordField.java +++ b/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;