Skip to content

Commit

Permalink
Fix string null check in Word Generator
Browse files Browse the repository at this point in the history
Change-Id: Ic42e377934404092c48a7555b634351565ebe2a4
  • Loading branch information
aror92 committed Feb 5, 2025
1 parent 430b73c commit 2c0c590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/xWorks/LcmWordGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ public IFragment AddProperty(ConfigurableDictionaryNode config, ReadOnlyProperty
Run contentRun = null;
string styleDisplayName = null;

if (content == null)
if (string.IsNullOrEmpty(content))
{
// In this case, we should not generate the run or any before/after text for it.
return propFrag;
Expand Down

0 comments on commit 2c0c590

Please sign in to comment.