I'm having an issue with Anylogic: I'm writing a function where I need to declare a new item of the type of an already existing Agent type. If I declare it with the code:
MyAgent name = new MyAgent();
everything is ok but when I try to execute a function to change the value of an internal value,
name.func();
it gives me a NullPointerException, because the internal variable of the declared MyAgent seems not to exist.
What am I missing?
Thanks a lot in advance for your help
