Skip to content

Commit ad044de

Browse files
AddedNullConditionForRepCopy
1 parent e089b1a commit ad044de

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

NVPClient/NVPClient.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,10 +660,12 @@ int runTransaction(INVPTransactionProcessorProxy *proxy, CybsMap *configMap, std
660660
char *responseMsg = "\0";
661661
responseMsg = proxy->soap->msgbuf;
662662

663-
//wstring repCopy(rep);
664-
663+
if (rep != NULL) {
664+
wstring repCopy(rep);
665+
}
666+
665667
if (status == SOAP_OK) {
666-
//if(rep != NULL && repCopy.size() > 0)
668+
if(rep != NULL)
667669
resMap = convertStringtoMap(rep);
668670

669671
if (cfg.isLogEnabled)

0 commit comments

Comments
 (0)