I am a Java developer and I am getting some problems in my code.
I am populating my Job list based on a JSON. Based on the image I am successfully getting all data from JSON. The problem is that inside the class Job I have a map where I store all operations of the Job.
So, at line 60 I check if the array of operation from the JSON is not empty, then I start to create it and add to a local map.
The segmentation fault occurs: 1 - if I try to assign the local map to my object map (as is declared at line 73).
2 - if I try to directly assign the new Operation to my object map like below:
jobs[id]->operations[opName] = new Operation(idOp, id, starting);
EDIT: just to show that I moved outside the if.
Aucun commentaire:
Enregistrer un commentaire