error: Object reference not set to an instance of an object. Genexus ev1

0

Good afternoon I am developing an application with GeneXus X evolution 1 in a web environment (.NET) but when creating a web panel, Web Component or simply modifying something in an event and trying to save or compile I get it:

  

"error: Object reference not set to an instance of an object."

I do not necessarily have to modify something simply with nothing and just try to save it. I hope and you can help me

    
asked by Angel Santos 26.10.2016 в 23:06
source

1 answer

1

That error is in 99% of the cases because you are trying to access a method of an object that is not initialized (it is null). As you do not put any code, it is difficult to help you more, but I give you an example of code that would throw this exception:

string cadena = null;
cadena.ToUpper();

As you can see, when trying to access the method ToUpper of cadena and not being this initialized, the exception is thrown.

If you put some relevant code we can help you more.

    
answered by 27.10.2016 в 09:04