How do I point a Node to an Object?

I have a line in my code that looks like this

 
  current->obj = newObj;


Unhandled exception at 0x003DE780 in lab5.exe: 0xC0000005: Access violation reading location 0x00000000.

I get this error whenever it reaches this line.

I want current to point to newObj. newObj was passed into the function as a pointer as well.
current is null pointer at the moment, so you cannot dereference it.
Topic archived. No new replies allowed.