Skip to content

Commit

Permalink
Resolved issue when getting tags back for content, following OrientDB…
Browse files Browse the repository at this point in the history
… upgrade.
  • Loading branch information
jonbullock committed Sep 19, 2022
1 parent 7505683 commit 563be75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jbake-core/src/main/java/org/jbake/app/DBUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import org.jbake.app.configuration.JBakeConfiguration;
import org.jbake.model.DocumentModel;

import java.util.ArrayList;

public class DBUtil {
private static ContentStore contentStore;

Expand Down Expand Up @@ -56,6 +58,9 @@ public static String[] toStringArray(Object entry) {
} else if (entry instanceof OTrackedList) {
OTrackedList<String> list = (OTrackedList<String>) entry;
return list.toArray(new String[list.size()]);
} else if (entry instanceof ArrayList) {
ArrayList<String> list = (ArrayList<String>) entry;
return list.toArray(new String[list.size()]);
}
return new String[0];
}
Expand Down

0 comments on commit 563be75

Please sign in to comment.