--- /BCodec.java	2023-07-05 02:20:32.738124578 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/BCodec.java	2023-07-05 02:20:32.738124578 +0200
@@ -188,7 +188,7 @@
      *                  encountered during the decode process.
      */
     public Object decode(Object value) throws DecoderException {
-        if (value == null) {
+if  ( value instanceof String )  {
             return null;
         } else if (value instanceof String) {
             return decode((String) value);
