Nullpointer exception error delete lock Revision 656232633437 (Thu Dec 20 2012 at 02:48) - Diff Link to this snippet: https://friendpaste.com/21WFtusmIesUcgQ8erTzT9 Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 12345678910111213141516171819202122232425262728293031323334353637public Simulation getSimulation() throws ClassNotFoundException { ArrayList<Operation> listOp2 = new ArrayList<Operation>(); operationsPrioriteToDoListModel = dyndefn.getOperationList(); for (int i = 0; i < operationsPrioriteToDoListModel.size(); i++) { listOp2.add((AbstractOperation) operationsPrioriteToDoListModel.get(i)); if (operationsPrioriteToDoListModel.get(i) instanceof OperationSuccession) { listOp2.add((OperationSuccession) operationsPrioriteToDoListModel.get(i)); } } int duration = simDef.getDuration(); int visu = simDef.getFrequenceVisu(); Simulation c2 = new Simulation(listOp2, duration, visu, simDef.getMatrixWidth(), simDef.getMatrixHeight()); if(simDef.getCalcul() != null){ c2.NUM--; } if(landscapeDefinition != null) c2.setMerges(landscapeDefinition.getMerges()); return c2; } public int getReturnStatus() { return returnStatus; } public int getMatrixHeight() { return matrixHeight; } public int getMatrixWidth() { return matrixWidth; } public String getTimer() { return strTimer; }