From 63f1dee9ce70edbf837f59fb0d7e6c3cb46e71d1 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Wed, 18 Dec 2024 21:11:40 +0100 Subject: [PATCH] Skipping directories --- .../com/helger/phive/ves/engine/load/DefaultVESLoaderXSD.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phive-ves-engine/src/main/java/com/helger/phive/ves/engine/load/DefaultVESLoaderXSD.java b/phive-ves-engine/src/main/java/com/helger/phive/ves/engine/load/DefaultVESLoaderXSD.java index e2fa69d0..7471c74a 100644 --- a/phive-ves-engine/src/main/java/com/helger/phive/ves/engine/load/DefaultVESLoaderXSD.java +++ b/phive-ves-engine/src/main/java/com/helger/phive/ves/engine/load/DefaultVESLoaderXSD.java @@ -219,6 +219,9 @@ public IValidationExecutor loadXSD (@Nonnull final IRepoS ZipEntry aEntry = null; while ((aEntry = aZIS.getNextEntry ()) != null) { + if (aEntry.isDirectory ()) + continue; + final String sEntryNameUnified = _unifyPath (aEntry.getName ()); if (sMainUnified.equals (sEntryNameUnified)) bFoundMain = true;