@@ -263,7 +263,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
263263 Internal method for setting the condition.
264264 """
265265 cdef StringBuffer buf = StringBuffer()
266- buf.set_value(value)
266+ buf.set_value(value or " " )
267267 if dpiDeqOptions_setCondition(self ._handle, buf.ptr, buf.length) < 0 :
268268 _raise_from_odpi()
269269
@@ -272,7 +272,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
272272 Internal method for setting the consumer name.
273273 """
274274 cdef StringBuffer buf = StringBuffer()
275- buf.set_value(value)
275+ buf.set_value(value or " " )
276276 if dpiDeqOptions_setConsumerName(self ._handle, buf.ptr,
277277 buf.length) < 0 :
278278 _raise_from_odpi()
@@ -282,7 +282,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
282282 Internal method for setting the correlation.
283283 """
284284 cdef StringBuffer buf = StringBuffer()
285- buf.set_value(value)
285+ buf.set_value(value or " " )
286286 if dpiDeqOptions_setCorrelation(self ._handle, buf.ptr, buf.length) < 0 :
287287 _raise_from_odpi()
288288
@@ -305,7 +305,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
305305 Internal method for setting the message id.
306306 """
307307 cdef StringBuffer buf = StringBuffer()
308- buf.set_value(value)
308+ buf.set_value(value or " " )
309309 if dpiDeqOptions_setMsgId(self ._handle, buf.ptr, buf.length) < 0 :
310310 _raise_from_odpi()
311311
@@ -321,7 +321,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
321321 Internal method for setting the transformation.
322322 """
323323 cdef StringBuffer buf = StringBuffer()
324- buf.set_value(value)
324+ buf.set_value(value or " " )
325325 if dpiDeqOptions_setTransformation(self ._handle, buf.ptr,
326326 buf.length) < 0 :
327327 _raise_from_odpi()
@@ -383,7 +383,7 @@ cdef class ThickEnqOptionsImpl(BaseEnqOptionsImpl):
383383 Internal method for setting the transformation.
384384 """
385385 cdef StringBuffer buf = StringBuffer()
386- buf.set_value(value)
386+ buf.set_value(value or " " )
387387 if dpiEnqOptions_setTransformation(self ._handle, buf.ptr,
388388 buf.length) < 0 :
389389 _raise_from_odpi()
@@ -543,7 +543,7 @@ cdef class ThickMsgPropsImpl(BaseMsgPropsImpl):
543543 Internal method for setting the correlation.
544544 """
545545 cdef StringBuffer buf = StringBuffer()
546- buf.set_value(value)
546+ buf.set_value(value or " " )
547547 if dpiMsgProps_setCorrelation(self ._handle, buf.ptr, buf.length) < 0 :
548548 _raise_from_odpi()
549549
@@ -559,7 +559,7 @@ cdef class ThickMsgPropsImpl(BaseMsgPropsImpl):
559559 Internal method for setting the exception queue.
560560 """
561561 cdef StringBuffer buf = StringBuffer()
562- buf.set_value(value)
562+ buf.set_value(value or " " )
563563 if dpiMsgProps_setExceptionQ(self ._handle, buf.ptr, buf.length) < 0 :
564564 _raise_from_odpi()
565565
0 commit comments