How can I go back and fix what is causing Error message?

when amending return i get an error message: UNKOWN EXCEPTION TypeError, Cannot read property 'isRefund' of null