public List<FileProperties> getFilesList() throws Exception{
        if (Files.isRegularFile(zipFile))
            throw new WrongZipFileException();
        List<FileProperties> list = new LinkedList<>();
        try (ZipInputStream zipInputStream = new ZipInputStream(Files.newInputStream(zipFile))){
            ZipEntry zipEntry = null;
            while ((zipEntry = zipInputStream.getNextEntry()) != null) {
                ByteArrayOutputStream out = new ByteArrayOutputStream();
                copyData(zipInputStream, out);
                list.add(new FileProperties(zipEntry.getName(), zipEntry.getSize(), zipEntry.getCompressedSize(),zipEntry.getMethod()));

            }
            zipInputStream.closeEntry();
        }
        return list;
    }
Где тут может быть проблема?