#vulnerable code 
                             @Test
	public void testEncryptWithCustomPassword() {
		byte[] key = Crypto.pbkdf2("pass".toCharArray());

		for (int i = 0; i < 10000; i++) {
			String msg1 = "" + i;

			byte[] enc = Crypto.encrypt(msg1.getBytes(), key);
			byte[] dec = Crypto.decrypt(enc, key);

			String msg2 = new String(dec);
			eq(msg2, msg1);
		}
	} 
                            #location 11 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Test
	public void testEncryptWithCustomPassword() {
		CryptoKey key = CryptoKey.from("pass".toCharArray());

		for (int i = 0; i < 10000; i++) {
			String msg1 = "" + i;

			byte[] enc = Crypto.encrypt(msg1.getBytes(), key);
			byte[] dec = Crypto.decrypt(enc, key);

			String msg2 = new String(dec);
			eq(msg2, msg1);
		}
	}