fix inject error

This commit is contained in:
Mike Rosseel 2017-03-24 13:29:09 +01:00
parent ba98228fb8
commit 284f405844
2 changed files with 9 additions and 2 deletions

View file

@ -17,6 +17,7 @@
package io.bisq.core.btc;
import com.google.inject.Inject;
import com.google.protobuf.Message;
import io.bisq.common.app.Version;
import io.bisq.common.persistance.Persistable;
@ -46,7 +47,7 @@ public final class AddressEntryList implements Persistable {
@Getter
private List<AddressEntry> addressEntryList = new ArrayList<>();
//@Inject
@Inject
public AddressEntryList(Storage<AddressEntryList> storage) {
this.storage = storage;
}

View file

@ -91,7 +91,13 @@ public class SeedNodeMain extends BisqExecutable {
final BisqEnvironment environment = getBisqEnvironment(options);
SeedNode.setEnvironment(environment);
UserThread.execute(() -> seedNode = new SeedNode());
UserThread.execute(() -> {
try {
seedNode = new SeedNode();
} catch (Exception e) {
e.printStackTrace();
}
});
Thread.UncaughtExceptionHandler handler = (thread, throwable) -> {
if (throwable.getCause() != null && throwable.getCause().getCause() != null &&