@@ -263,7 +263,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
263
263
Internal method for setting the condition.
264
264
"""
265
265
cdef StringBuffer buf = StringBuffer()
266
- buf.set_value(value)
266
+ buf.set_value(value or " " )
267
267
if dpiDeqOptions_setCondition(self ._handle, buf.ptr, buf.length) < 0 :
268
268
_raise_from_odpi()
269
269
@@ -272,7 +272,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
272
272
Internal method for setting the consumer name.
273
273
"""
274
274
cdef StringBuffer buf = StringBuffer()
275
- buf.set_value(value)
275
+ buf.set_value(value or " " )
276
276
if dpiDeqOptions_setConsumerName(self ._handle, buf.ptr,
277
277
buf.length) < 0 :
278
278
_raise_from_odpi()
@@ -282,7 +282,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
282
282
Internal method for setting the correlation.
283
283
"""
284
284
cdef StringBuffer buf = StringBuffer()
285
- buf.set_value(value)
285
+ buf.set_value(value or " " )
286
286
if dpiDeqOptions_setCorrelation(self ._handle, buf.ptr, buf.length) < 0 :
287
287
_raise_from_odpi()
288
288
@@ -305,7 +305,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
305
305
Internal method for setting the message id.
306
306
"""
307
307
cdef StringBuffer buf = StringBuffer()
308
- buf.set_value(value)
308
+ buf.set_value(value or " " )
309
309
if dpiDeqOptions_setMsgId(self ._handle, buf.ptr, buf.length) < 0 :
310
310
_raise_from_odpi()
311
311
@@ -321,7 +321,7 @@ cdef class ThickDeqOptionsImpl(BaseDeqOptionsImpl):
321
321
Internal method for setting the transformation.
322
322
"""
323
323
cdef StringBuffer buf = StringBuffer()
324
- buf.set_value(value)
324
+ buf.set_value(value or " " )
325
325
if dpiDeqOptions_setTransformation(self ._handle, buf.ptr,
326
326
buf.length) < 0 :
327
327
_raise_from_odpi()
@@ -383,7 +383,7 @@ cdef class ThickEnqOptionsImpl(BaseEnqOptionsImpl):
383
383
Internal method for setting the transformation.
384
384
"""
385
385
cdef StringBuffer buf = StringBuffer()
386
- buf.set_value(value)
386
+ buf.set_value(value or " " )
387
387
if dpiEnqOptions_setTransformation(self ._handle, buf.ptr,
388
388
buf.length) < 0 :
389
389
_raise_from_odpi()
@@ -543,7 +543,7 @@ cdef class ThickMsgPropsImpl(BaseMsgPropsImpl):
543
543
Internal method for setting the correlation.
544
544
"""
545
545
cdef StringBuffer buf = StringBuffer()
546
- buf.set_value(value)
546
+ buf.set_value(value or " " )
547
547
if dpiMsgProps_setCorrelation(self ._handle, buf.ptr, buf.length) < 0 :
548
548
_raise_from_odpi()
549
549
@@ -559,7 +559,7 @@ cdef class ThickMsgPropsImpl(BaseMsgPropsImpl):
559
559
Internal method for setting the exception queue.
560
560
"""
561
561
cdef StringBuffer buf = StringBuffer()
562
- buf.set_value(value)
562
+ buf.set_value(value or " " )
563
563
if dpiMsgProps_setExceptionQ(self ._handle, buf.ptr, buf.length) < 0 :
564
564
_raise_from_odpi()
565
565
0 commit comments