#vulnerable code 
                                public void testDecodePadMarkerIndex2() {
        assertEquals("A", new String(Base64.decodeBase64("QQ==".getBytes())));
    } 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                                public void testDecodePadMarkerIndex2() throws UnsupportedEncodingException {
        assertEquals("A", new String(Base64.decodeBase64("QQ==".getBytes("UTF-8"))));
    }