Skip to main content
V.H
Senior
December 1, 2021
Question

presenter pointer was NULL

  • December 1, 2021
  • 2 replies
  • 1087 views

Hi,

The data read from Model class thru presenter in screen1View::screen1View() function was error. I debug the code and found the presenter pointer was NULL in constructor function.

Is it unsafe to use at constructor and destructor function time ?

This topic has been closed for replies.

2 replies

GBert.2
Senior
December 6, 2021

I think you need to use the presenter screen after constructing your view object.

Did you try using it in the activate method?

V.H
V.HAuthor
Senior
December 8, 2021

That's how I use it now, because I can't track where the parameter is initialized.