From 642ea89ef1bac5fa5530c3fc2f2a5b8536c232b7 Mon Sep 17 00:00:00 2001 From: Isak Naslund Date: Thu, 14 Nov 2019 17:08:04 +0100 Subject: [PATCH] Fix for check for empty request --- GSA_Adapter/AdapterActions/Pull.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GSA_Adapter/AdapterActions/Pull.cs b/GSA_Adapter/AdapterActions/Pull.cs index 03145537..c9793d75 100644 --- a/GSA_Adapter/AdapterActions/Pull.cs +++ b/GSA_Adapter/AdapterActions/Pull.cs @@ -32,7 +32,7 @@ public override IEnumerable Pull(IRequest request, Dictionary readresult = new List(); - if (request == null || (request as FilterRequest)?.Type == null) + if (request == null || (request is FilterRequest && (request as FilterRequest)?.Type == null)) { readresult.AddRange(ReadNodes()); readresult.AddRange(ReadBars());