Skip to content

Commit 6b7352e

Browse files
author
Zach Lowry
committed
Fix bug in JSON marshalling for the category context activity.
1 parent 62591cf commit 6b7352e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/rusticisoftware/tincan/ContextActivities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public ObjectNode toJSONNode(TCAPIVersion version) {
160160
}
161161
}
162162
if (this.category != null && this.category.size() > 0) {
163-
if (version.ordinal() <= TCAPIVersion.V100.ordinal()) {
163+
if (version.ordinal() >= TCAPIVersion.V100.ordinal()) {
164164
ArrayNode category = mapper.createArrayNode();
165165
node.put("category", category);
166166

0 commit comments

Comments
 (0)