2 Commits b392809a1d ... eed08d120d

Autore SHA1 Messaggio Data
  lvle eed08d120d Merge branch 'dev' of http://git.kdan.cc:8865/Windows/PDFOffice_Windows_exe into dev 1 anno fa
  lvle 197420d2a6 搜索-添加判空处理避免崩溃 1 anno fa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      PDF Office/ViewModels/ViewContentViewModel.cs

+ 1 - 1
PDF Office/ViewModels/ViewContentViewModel.cs

@@ -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(() =>
                 {
                 {