Skip to content
Snippets Groups Projects
Commit 55671321 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Bugs resolved on exception in DIPLODOCUS

parent 1a8ac05a
No related branches found
No related tags found
No related merge requests found
......@@ -119,17 +119,19 @@ public class TMLArchiDiagramPanel extends TDiagramPanel implements TDPWithAttrib
if (node != null && node instanceof TMLArchiCPNode) {
listOfCP = getListOfCPNodes();
} else if (node != null) {
for (TGComponent node1 : listOfCP.keySet()) {
Vector <String> tempList = new Vector<>();
boolean isContain = false;
for (int i = 0; i < listOfCP.get(node1).size(); i++) {
tempList.add(listOfCP.get(node1).get(i).getName() + " " + listOfCP.get(node1).get(i).getTGC().getName());
if(listOfCP.get(node1).get(i).getTGC() == node) isContain = true;
if (listOfCP != null) {
for (TGComponent node1 : listOfCP.keySet()) {
Vector<String> tempList = new Vector<>();
boolean isContain = false;
for (int i = 0; i < listOfCP.get(node1).size(); i++) {
tempList.add(listOfCP.get(node1).get(i).getName() + " " + listOfCP.get(node1).get(i).getTGC().getName());
if (listOfCP.get(node1).get(i).getTGC() == node) isContain = true;
}
if (!isContain)
continue;
else
((TMLArchiCPNode) node1).setMappedUnits(tempList);
}
if (!isContain)
continue;
else
((TMLArchiCPNode) node1).setMappedUnits(tempList);
}
} else {
System.out.println(" Nothing is selected");
......
......@@ -243,7 +243,11 @@ public class JDialogMultiString extends JDialogBase implements ActionListener {
} else if (inserts != null) {
for (int i = 0; i < inserts.length; i++) {
if (evt.getSource() == inserts[i]) {
texts[i].setText(helps.get(i).getSelectedItem().toString());
if (helps.get(i) != null) {
if (helps.get(i).getSelectedItem() != null) {
texts[i].setText(helps.get(i).getSelectedItem().toString());
}
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment