Address exception saving movie preferences
This commit is contained in:
parent
f74c41aa59
commit
040aa01d2f
1 changed files with 11 additions and 2 deletions
|
|
@ -819,9 +819,18 @@ public class MovieContainer extends PanelObservable implements ActionListener {
|
|||
public void savePreferences() {
|
||||
|
||||
Gson gson = new Gson();
|
||||
String out = gson.toJson(this.movieScheme.getAllSpeciesSchemes());
|
||||
String out;
|
||||
String fullPath;
|
||||
|
||||
String fullPath = getPreferencesFullPath();
|
||||
try {
|
||||
out = gson.toJson(this.movieScheme.getAllSpeciesSchemes());
|
||||
fullPath = getPreferencesFullPath();
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
JOptionPane.showMessageDialog(Gui.frame, "An error occured preparing to save movie preferences " + "\nmessage: " + e.getMessage());
|
||||
return;
|
||||
}
|
||||
|
||||
FileOutputStream fHandle;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue