mirror of https://github.com/apache/poi.git
fix npe
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917138 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1899bee1b9
commit
a0091652a5
|
@ -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 + "$");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue