git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917138 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2024-04-19 10:12:44 +00:00
parent 1899bee1b9
commit a0091652a5
1 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,9 @@ public final class PackagingURIHelper {
if (partUri == null)
throw new IllegalArgumentException("partUri");
return partUri.getPath().matches(
final String path = partUri.getPath();
return path != null && path.matches(
".*" + RELATIONSHIP_PART_SEGMENT_NAME + ".*"
+ RELATIONSHIP_PART_EXTENSION_NAME + "$");
}