Ignore ObjectModelReferences with a null title (to prevent crashing)
This commit is contained in:
parent
ac2ac92751
commit
6f31b5f762
@ -103,8 +103,10 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((dfr.Title.ToLower().Contains(txtSearch.Text.ToLower()))
|
||||
|| (dfr.Description.ToLower().Contains(txtSearch.Text.ToLower())))
|
||||
if (String.IsNullOrEmpty(dfr.Title)) continue;
|
||||
|
||||
if ((dfr.Title.ToLower().Contains(txtSearch.Text.Trim().ToLower()))
|
||||
|| (dfr.Description.ToLower().Contains(txtSearch.Text.Trim().ToLower())))
|
||||
{
|
||||
AddObjectModelToList(dfr);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user