--- /URLCodec.java	2023-07-05 02:59:17.326052121 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/URLCodec.java	2023-07-05 02:59:17.330052120 +0200
@@ -305,7 +305,7 @@
      *                          if encoding is unsuccessful
      */
     public Object encode(Object pObject) throws EncoderException {
-        if (pObject == null) {
+if  ( bytes == null )  {
             return null;
         } else if (pObject instanceof byte[]) {
             return encode((byte[])pObject);
