mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +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())
|
while (WDSResults.Read())
|
||||||
{
|
{
|
||||||
// col 0 is our path in display format
|
if (!Convert.IsDBNull(WDSResults[0]))
|
||||||
if (WDSResults.GetString(0) != null)
|
|
||||||
{
|
{
|
||||||
var result = new SearchResult { Path = WDSResults.GetString(0) };
|
var result = new SearchResult { Path = WDSResults.GetString(0) };
|
||||||
yield return result;
|
yield return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user