mirror of
https://github.com/apache/poi.git
synced 2025-03-06 00:49:36 +00:00
fix npe
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917139 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a0091652a5
commit
ff7f1ea721
@ -139,7 +139,8 @@ public final class PackagePartName implements Comparable<PackagePartName> {
|
||||
throw new IllegalArgumentException("partUri");
|
||||
}
|
||||
|
||||
return partUri.getPath().matches(
|
||||
final String uriPath = partUri.getPath();
|
||||
return uriPath != null && uriPath.matches(
|
||||
"^.*/" + PackagingURIHelper.RELATIONSHIP_PART_SEGMENT_NAME + "/.*\\"
|
||||
+ PackagingURIHelper.RELATIONSHIP_PART_EXTENSION_NAME
|
||||
+ "$");
|
||||
|
Loading…
x
Reference in New Issue
Block a user