Skip to content

Commit

Permalink
fix NPE verify from view certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrateron committed Apr 12, 2024
1 parent dfc438f commit 97ab4e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kse/src/main/java/org/kse/gui/dialogs/DViewCertificate.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ private void initComponents(X509Certificate[] certs) throws CryptoException {

jbVerify = new JButton(res.getString("DViewCertificate.jbVerify.text"));
jbVerify.setToolTipText(res.getString("DViewCertificate.jbVerify.tooltip"));
jbVerify.setVisible(importExport != NONE);
PlatformUtil.setMnemonic(jbVerify, res.getString("DViewCertificate.jbVerify.mnemonic").charAt(0));

Container pane = getContentPane();
Expand Down Expand Up @@ -302,7 +303,7 @@ private void initComponents(X509Certificate[] certs) throws CryptoException {
pane.add(jbExport, "hidemode 1");
pane.add(jbExtensions, "");
pane.add(jbPem, "");
pane.add(jbVerify, "");
pane.add(jbVerify, "hidemode 1");
pane.add(jbAsn1, "wrap");
pane.add(new JSeparator(), "spanx, growx, wrap 15:push");
pane.add(jbOK, "spanx, tag ok");
Expand Down

0 comments on commit 97ab4e8

Please sign in to comment.