Skip to content

Commit 42ab36e

Browse files
committed
Fix #2686
1 parent 6fad35b commit 42ab36e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

modules/LayoutAPI/src/main/java/org/gephi/layout/LayoutControllerImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Development and Distribution License("CDDL") (collectively, the
5151
import org.gephi.utils.longtask.spi.LongTask;
5252
import org.gephi.utils.progress.Progress;
5353
import org.gephi.utils.progress.ProgressTicket;
54+
import org.openide.util.Exceptions;
5455
import org.openide.util.Lookup;
5556
import org.openide.util.NbBundle;
5657
import org.openide.util.lookup.ServiceProvider;
@@ -86,7 +87,11 @@ public void select(Workspace workspace) {
8687
@Override
8788
public void unselect(Workspace workspace) {
8889
if (model != null && model.getSelectedLayout() != null) {
89-
model.saveProperties(model.getSelectedLayout());
90+
try {
91+
model.saveProperties(model.getSelectedLayout());
92+
} catch (Exception e) {
93+
Exceptions.printStackTrace(e);
94+
}
9095
}
9196
}
9297

modules/LayoutPlugin/src/main/java/org/gephi/layout/plugin/openord/OpenOrdLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class OpenOrdLayout implements Layout, LongTask {
7272
private boolean running = true;
7373
private ProgressTicket progressTicket;
7474
//Settings
75-
private Params param;
75+
private Params param = Params.DEFAULT;
7676
private float edgeCut;
7777
private int numThreads;
7878
private long randSeed;

0 commit comments

Comments
 (0)