[TOTVS build: 7.00.191205P-20200724]
Called from REPORTDEF(RELFIN001.PRW) 22/12/2020 13:09:00 line : 59
Called from U_RELFIN001(RELFIN001.PRW) 22/12/2020 13:09:00 line : 23
Called from SIGAIXB(APLIB190.PRW) 12/06/2020 18:03:23 line : 231
Called from __EXECUTE(APLIB090.PRW) 12/06/2020 18:03:23 line : 615
Called from FWPREEXECUTE(FWPREEXECUTE.PRW) 12/06/2020 18:03:25 line : 79
Called from { || FWPreExecute(‘Relfin001’, ‘RELFIN001()’, 3, ‘06’, ‘xxxxxxxxxx’) }(FWUISEARCH.PRW) 12/06/2020 18:03:23 line : 305
Called from FWUISEARCH:SHOWWAIT(FWUISEARCH.PRW) 12/06/2020 18:03:23 line : 232
No fonte que informou existe alguns problemas(não é possível compilar de cara), tem uma linha que creio que deve ser comentada (a "descrição" do TRSection), aí sobre a chamada do TrBreak():New(), que aparentemente é onde está acontecendo o problema(está comentada, mas creio que quando testou não estava), você está adicionando no segundo parâmetro oSecCab:Cell("A2_COD"), mas esta célula não foi adicionada no TrCell, onde provavelmente está retornando um valor null.