I'm getting a sense of deja-vue...

In the code you posted, you have a class member node array called 'nodeobj' which never gets initialized and is hidden in the main(..) method by a local node...