Skip to content

Commit

Permalink
Merge pull request #967 from d3sw/ONECOND-2235
Browse files Browse the repository at this point in the history
ONECOND-2235: Fix workflow metadata delete issue
  • Loading branch information
cmegafu authored Apr 25, 2023
2 parents b9ec444 + de31742 commit dd21ab7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import java.util.LinkedList;
import java.util.List;

import static java.util.Objects.nonNull;

public class AuroraIndexDAO extends AuroraBaseDAO implements IndexDAO {

@Inject
Expand Down Expand Up @@ -120,7 +122,7 @@ public SearchResult<String> searchWorkflows(String query, String freeText, int s
parseQuery(query, SQL, params);
parseFreeText(freeText, SQL, params);

if (!sort.isEmpty()) {
if (nonNull(sort) && !sort.isEmpty()) {
SQL.append("ORDER BY ");
parseSort(sort, SQL);
SQL.append(" LIMIT ? OFFSET ?");
Expand Down

0 comments on commit dd21ab7

Please sign in to comment.