Skip to content

Commit 1acc2ee

Browse files
fix bug that TextResult.Exception is null not ""
1 parent 3b7853f commit 1acc2ee

File tree

1 file changed

+1
-1
lines changed
  • samples/UseCases/ProcessDocumentsByBarcodes

1 file changed

+1
-1
lines changed

samples/UseCases/ProcessDocumentsByBarcodes/Form1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ private void DoSplit(string strFile, string strOutputFolder, TextResult[] barcod
419419
{
420420
separators.Add(result.LocalizationResult.PageNumber);
421421
string strBarcodeText = result.BarcodeText;
422-
if (result.Exception != "" && !result.Exception.Contains(((int)EnumErrorCode.DMERR_TRIAL_LICENSE).ToString()))
422+
if (result.Exception != null && !result.Exception.Contains(((int)EnumErrorCode.DMERR_TRIAL_LICENSE).ToString()))
423423
strBarcodeText = strBarcodeText.Substring(strBarcodeText.IndexOf("]") + 2);
424424
values.Add(strBarcodeText);
425425
}

0 commit comments

Comments
 (0)