From d5843ea6333d0029c6228e9db422798ba1568936 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Fri, 11 Nov 2022 22:31:37 +0100 Subject: Fix encryption settings screen Fixes #288 --- .../java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java b/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java index 0a43fa1..b7d5009 100644 --- a/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java +++ b/src/main/java/com/aizistral/nochatreports/gui/EncryptionConfigScreen.java @@ -90,8 +90,8 @@ public class EncryptionConfigScreen extends Screen { var button = new AdvancedImageButton(this.keyField.getX() + this.keyField.getWidth() - 15, this.keyField.getY() + 3, 12, 12, 0, 0, 0, ENCRYPTION_ICONS, 64, 64, btn -> {}, Component.empty(), this); - button.setTooltip(new AdvancedTooltip(() -> this.validationIcon.yTexStart == 0 ? VALIDATION_OK - : VALIDATION_FAILED).setMaxWidth(250)); + button.setTooltip(new AdvancedTooltip(() -> this.validationIcon != null && + this.validationIcon.yTexStart == 0 ? VALIDATION_OK : VALIDATION_FAILED).setMaxWidth(250)); button.active = false; button.visible = true; -- cgit v1.2.3