renaming identifiers: handle empty stack (probably never executed branch)

This commit is contained in:
Honfika
2013-11-24 19:36:34 +01:00
parent aeb0f81cf7
commit db4ca5c266
2 changed files with 6 additions and 0 deletions

View File

@@ -2911,6 +2911,8 @@ public final class MainFrame extends AppRibbonFrame implements ActionListener, T
reload(true);
} catch (Exception ex) {
Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, "Error during renaming identifiers", ex);
Main.stopWork();
View.showMessageDialog(null, translate("error.occured").replace("%error%", ex.getClass().getSimpleName()));
}
return true;
}