Skip to content

Commit

Permalink
Fixed eclipse#380 - Don't print unnecessary exception
Browse files Browse the repository at this point in the history
No exception printing when ~/.eclipseswtchartsettings does not exist.

Signed-off-by: Tuukka Lehtonen <[email protected]>
  • Loading branch information
tvlehton committed Jan 29, 2024
1 parent 9b90a7c commit 8ee7887
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
package org.eclipse.swtchart.extensions.core;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URL;
import java.util.HashSet;
Expand Down Expand Up @@ -100,6 +101,8 @@ public static IPreferenceStore getPreferenceStore() {
*/
try {
((PreferenceStore)preferenceStore).load();
} catch(FileNotFoundException e) {
// Ignore
} catch(IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 8ee7887

Please sign in to comment.