Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1917138 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed Apr 19, 2024
1 parent 1899bee commit a009165
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ public static boolean isRelationshipPartURI(URI partUri) {
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 + "$");
}
Expand Down

0 comments on commit a009165

Please sign in to comment.