NullPointerException can occur when prompt return null and secret is not set [1].
[1] https://github.com/wildfly-security/wildfly-elytron/blob/36927fdc4b268534e2336042fa26b29ee5a892ff/tool/src/main/java/org/wildfly/security/tool/MaskCommand.java#L103