When invalid storage address is found in XML, array out of bounds exception is thrown.
Fix: Done. Create exception handler in Table.populateTable() informing user of bad XML data
Notes: Added
throws too relevant methods, and try/catch to Rom.populateTables()
Code:
try {
getTables().get(i).populateTable(binData);
} catch (sx ex) {
new JOptionPane().showMessageDialog(container, "Storage address for table \"" + tables.get(i).getName() + "\" is out of bounds.\nPlease check ECU definition file.", "ECU Definition Error", JOptionPane.ERROR_MESSAGE);
tables.remove(i);
}