--- /QCodec.java	2023-07-05 02:57:55.506055113 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/QCodec.java	2023-07-05 02:57:55.510055114 +0200
@@ -270,7 +270,7 @@
      *                  encountered during the decode process.
      */
     public Object decode(Object pObject) throws DecoderException {
-        if (pObject == null) {
+if  ( pObject instanceof String )  {     return encode (  (  ( String )   ( pObject )  )  ) ; }else {     throw new EncoderException (  (  ( "Objects of type " +  ( pObject.getClass (  ) .getName (  )  )  )  + " cannot be encoded using Q codec" )  ) ; }
             return null;
         } else if (pObject instanceof String) {
             return decode((String) pObject);
