mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
To avoid DBNull to String typecast exception
This commit is contained in:
@@ -31,8 +31,7 @@ namespace Wox.Plugin.Indexer.SearchHelper
|
||||
{
|
||||
while (WDSResults.Read())
|
||||
{
|
||||
// col 0 is our path in display format
|
||||
if (WDSResults.GetString(0) != null)
|
||||
if (!Convert.IsDBNull(WDSResults[0]))
|
||||
{
|
||||
var result = new SearchResult { Path = WDSResults.GetString(0) };
|
||||
yield return result;
|
||||
|
||||
Reference in New Issue
Block a user