Skip to content

Commit 1d1e1db

Browse files
iroquetaAlejandroP
andcommitted
Commit was not working in SAP Connector (#873)
Issue: 108854 Co-authored-by: Alejandro Panizza Carve <[email protected]>
1 parent 1ff4899 commit 1d1e1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/src/main/java/com/genexus/sap/SessionManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void TransactionBegin()
156156
scopeName = String.valueOf( scopeObj);
157157
Log.info("GX SAP - Begin Transaction " + destinationName);
158158
JCoDestination destination = null;
159-
if (scopeName.isEmpty())
159+
if (scopeName.isEmpty() || scopeName.equals("null"))
160160
destination = JCoDestinationManager.getDestination(destinationName);
161161
else
162162
destination = JCoDestinationManager.getDestination(destinationName, scopeName);
@@ -182,7 +182,7 @@ public void TransactionCommit()
182182
JCoDestination destination = null;
183183
destinationName = (String)destinationObj;
184184
scopeName = String.valueOf(scopeObject);
185-
if ( scopeName.isEmpty() ) {
185+
if ( scopeName.isEmpty() || scopeName.equals("null") ) {
186186
destination = JCoDestinationManager.getDestination(destinationName);
187187
}
188188
else {

0 commit comments

Comments
 (0)