Skip to content

Commit

Permalink
Fix sorkey array control generation when it is null
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Jun 6, 2024
1 parent efc58e1 commit 86fc945
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ public LDAPPagedSearch(Class<E> contentClassType, DBRegistry registry, LDAPConne
this.base = base;
this.filter = filter;
this.attrs = attrs;
this.sortKeys = new String[1];
this.sortKeys[0] = sortKey;
if (sortKey != null) {
this.sortKeys = new String[1];
this.sortKeys[0] = sortKey;
}
try {
this.conn = (LDAPConnection) conn.clone();
} catch (Exception e) {
Expand Down

0 comments on commit 86fc945

Please sign in to comment.