HHH-8821 corrected failing test

This commit is contained in:
Brett Meyer 2014-01-09 14:41:07 -05:00
parent 17acc05056
commit eb764fadcc
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public abstract class AbstractArchiveDescriptor implements ArchiveDescriptor {
protected String extractRelativeName(ZipEntry zipEntry) {
final String entryName = extractName( zipEntry );
return entryBasePrefix == null ? entryName : entryName.substring( entryBasePrefix.length() );
return entryBasePrefix != null && entryName.contains( entryBasePrefix ) ? entryName.substring( entryBasePrefix.length() ) : entryName;
}
protected String extractName(ZipEntry zipEntry) {