From a4b7eefcdf6876073c6872b511f898c1182171d6 Mon Sep 17 00:00:00 2001 From: Nick Nicholas Date: Fri, 13 Apr 2018 12:35:12 +1000 Subject: [PATCH] writing extract report fix --- naprrql/report-resolvers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/naprrql/report-resolvers.go b/naprrql/report-resolvers.go index e737492..9eb9b22 100644 --- a/naprrql/report-resolvers.go +++ b/naprrql/report-resolvers.go @@ -899,6 +899,12 @@ func buildReportResolvers() map[string]interface{} { ok = false } else { resp, ok = responses[0].(xml.NAPResponseSet) + if ok { + ok = (len(resp.TestletList.Testlet) != 0) + if ok { + ok = (len(resp.TestletList.Testlet[0].ItemResponseList.ItemResponse) != 0) + } + } } if ok { for _, testlet := range resp.TestletList.Testlet {