Skip to content

Commit

Permalink
Allow passing GStringImpl to hid.execute
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed May 22, 2019
1 parent 7252d7c commit 1232857
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/org/camunda/latera/bss/connectors/HID.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.camunda.latera.bss.connectors

import groovy.net.xmlrpc.*
import java.time.LocalDateTime
import org.codehaus.groovy.runtime.GStringImpl
import org.camunda.latera.bss.utils.StringUtil
import org.camunda.latera.bss.utils.DateTimeUtil
import org.camunda.latera.bss.utils.Oracle
Expand Down Expand Up @@ -74,8 +73,8 @@ class HID implements Table {
if (DateTimeUtil.isDate(value)) {
value = Oracle.encodeDate(value)
}
if (value instanceof GStringImpl) {
value = value.toString()
if (StringUtil.isString(value)) {
value = value.toString() // Convert GStringImpl to String
}
encodedParams[key] = Oracle.encodeNull(value)
}
Expand Down

0 comments on commit 1232857

Please sign in to comment.