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