fix potential null reference
This commit is contained in:
parent
abfc7a8b0f
commit
3d07fa54f4
|
|
@ -230,8 +230,13 @@ public class QdrantDb : IVectorDb
|
|||
{
|
||||
foreach (var item in payload)
|
||||
{
|
||||
if (item.Value == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var value = item.Value.DataValue?.ConvertToString();
|
||||
if (value == null || item.Key.IsEqualTo(KnowledgePayloadName.Text))
|
||||
if (string.IsNullOrEmpty(value) || item.Key.IsEqualTo(KnowledgePayloadName.Text))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue