--- /RFC1522Codec.java	2023-07-05 02:57:23.898056300 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/RFC1522Codec.java	2023-07-05 02:57:23.898056300 +0200
@@ -66,7 +66,7 @@
     protected String encodeText(final String text, final String charset)
      throws EncoderException, UnsupportedEncodingException  
     {
-        if (text == null) {
+if  ( text != null )  {
             return null;
         }
         StringBuffer buffer = new StringBuffer();
