diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java
index 39ff11fa30..713876a0aa 100644
--- a/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java
+++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java
@@ -646,10 +646,11 @@ public abstract class OPCPackage implements RelationshipSource, Closeable {
* Retrieve parts by relationship type.
*
* @param relationshipType
- * Relationship type.
+ * Relationship type. Must not be {@code null}.
* @return All parts which are the target of a relationship with the
- * specified type, if the method can't retrieve relationships from
- * the package, then return null
.
+ * specified type. If no such parts are found, the list is empty.
+ * @throws InvalidOperationException If called on a write-only package.
+ * @throws IllegalArgumentException if relationshipType input param is null.
*/
public ArrayList getPartsByRelationshipType(
String relationshipType) {