-1
I’m getting the following error:
Referência de objeto não definida para uma instância de um objeto.
The line generating the error is as follows:
var _TceView = MapperFacade.MapperConfiguration.Map<TceView>(await _TceRepositorio.buscarTce(pIdTce));
What’s the problem? I’ve fucked up the whole code and I can’t find it.
To
Referência de objeto não definida para uma instância de um objeto
occurs when you try to do something on an objectnulo
. Looking at your code I believe that the_TceRepositorio.buscarTce(pIdTce)
is not returned a record, and theMapperFacade.MapperConfiguration.Map<TceView>
while trying to makeTceView.Campo
gives the error in question.– Tiedt Tech
or the very
_TceRepositorio
was not instantiated– Leandro Angelo