Here's a diff of RomRaider\swing\ECUEditorMenuBar.java which removes the empty Exception (as well as fixing a couple of the JOptionPane.showMessageDialog static references I mentioned in the other thread).
Code:
@@ -130,15 +130,14 @@
System.exit(0);
} else if (e.getSource() == romProperties) {
- new JOptionPane().showMessageDialog(parent, (Object)(new RomPropertyPanel(parent.getLastSelectedRom())),
+ JOptionPane.showMessageDialog(parent, (Object)(new RomPropertyPanel(parent.getLastSelectedRom())),
parent.getLastSelectedRom().getRomIDString() + " Properties", JOptionPane.INFORMATION_MESSAGE);
} else if (e.getSource() == refreshImage) {
try {
refreshImage();
- throw new Exception();
} catch (Exception ex) {
- new JOptionPane().showMessageDialog(parent, new DebugPanel(ex,
+ JOptionPane.showMessageDialog(parent, new DebugPanel(ex,
parent.getSettings().getSupportURL()), "Exception", JOptionPane.ERROR_MESSAGE);
}