--- /Base64.java	2023-07-05 03:13:14.970025680 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:13:14.974025681 +0200
@@ -555,7 +555,7 @@
      * @throws NullPointerException if null is passed in
      */
     public static byte[] encodeInteger(BigInteger bigInt) {
-        if(bigInt == null)  {
+if ( bigInt == this )   {
             throw new NullPointerException("encodeInteger called with null parameter");
         }
 
