|
@@ -2215,7 +2215,7 @@ namespace PDF_Master.ViewModels
|
|
|
|
|
|
public void SearchTextFocus(SearchContent searchContent)
|
|
public void SearchTextFocus(SearchContent searchContent)
|
|
{
|
|
{
|
|
- if (string.IsNullOrEmpty(searchContent.SearchText.Text) == false)
|
|
|
|
|
|
+ if (searchContent!=null&&searchContent.SearchText!=null&& string.IsNullOrEmpty(searchContent.SearchText.Text) == false)
|
|
{
|
|
{
|
|
searchContent.SearchText.Dispatcher.BeginInvoke(new Action(() =>
|
|
searchContent.SearchText.Dispatcher.BeginInvoke(new Action(() =>
|
|
{
|
|
{
|