Skip to content

Commit

Permalink
Don't crash if JSX is not available...
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed May 7, 2003
1 parent 745318e commit 603883f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions com/gallery/GalleryRemote/MainFrame.java
Expand Up @@ -1001,6 +1001,8 @@ private void saveState(File f) {
} catch (IOException e) {
Log.log(Log.ERROR, MODULE, "Exception while trying to save state");
Log.logException(Log.ERROR, MODULE, e);
} catch (NoClassDefFoundError e) {
Log.log(Log.ERROR, MODULE, "JSX not installed, can't save state...");
}
}

Expand Down Expand Up @@ -1032,6 +1034,8 @@ private void openState() {
} catch (ClassNotFoundException e) {
Log.log(Log.ERROR, MODULE, "Exception while trying to read state (probably a version mismatch)");
Log.logException(Log.ERROR, MODULE, e);
} catch (NoClassDefFoundError e) {
Log.log(Log.ERROR, MODULE, "JSX not installed, can't read state...");
}
}

Expand Down

0 comments on commit 603883f

Please sign in to comment.