#vulnerable code 
                             static
	public List<?> getArray(ClassDict dict, String name, String key){
		NDArrayWrapper arrayWrapper = (NDArrayWrapper)dict.get(name);

		NDArray array = arrayWrapper.getContent();

		return NDArrayUtil.getData(array, key);
	} 
                            #location 5 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             static
	public List<?> getArray(ClassDict dict, String name, String key){
		Object object = dict.get(name);

		if(object instanceof NDArrayWrapper){
			NDArrayWrapper arrayWrapper = (NDArrayWrapper)object;

			NDArray array = arrayWrapper.getContent();

			return NDArrayUtil.getContent(array, key);
		}

		throw new IllegalArgumentException();
	}