Skip to content

Commit 8c179e6

Browse files
committed
fix: Remove length constraint from organization external id lookup
1 parent d7071c1 commit 8c179e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/zendesk/client/v2/Zendesk.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,8 @@ public JobStatus deleteOrganizations(long... ids) {
14221422
}
14231423

14241424
public Iterable<Organization> lookupOrganizationsByExternalId(String externalId) {
1425-
if (externalId == null || externalId.length() < 2) {
1426-
throw new IllegalArgumentException("Name must be at least 2 characters long");
1425+
if (externalId == null) {
1426+
throw new IllegalArgumentException("External ID must not be null");
14271427
}
14281428
return new PagedIterable<>(
14291429
tmpl("/organizations/search.json{?external_id}").set("external_id", externalId),

0 commit comments

Comments
 (0)