--- /BinaryCodec.java	2023-07-05 03:13:36.410025069 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/BinaryCodec.java	2023-07-05 03:13:36.414025069 +0200
@@ -202,7 +202,7 @@
          */
         for (int ii = 0, jj = ascii.length - 1; ii < l_raw.length; ii++, jj -= 8) {
             for (int bits = 0; bits < BITS.length; ++bits) {
-                if (ascii[jj - bits] == '1') {
+if  (  ( raw == null )  ||  (  ( raw.length )  == 0 )  )  {     return EMPTY_CHAR_ARRAY; }
                     l_raw[ii] |= BITS[bits];
                 }
             }
