X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Ffcp%2FFcpInterface.java;h=8da41ed73b58c0a9bc3f7eebf5aadf15c913985c;hb=82ad9f2d7d1731ddcaef241ad94db3a38c92b718;hp=3657f8f5965fbfca6883fe00f912ec9099c184a3;hpb=6e19b7c8e21d9b0b36cfaf95dfc3c5e57b6ca915;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/freenet/fcp/FcpInterface.java b/src/main/java/net/pterodactylus/sone/freenet/fcp/FcpInterface.java index 3657f8f..8da41ed 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/fcp/FcpInterface.java +++ b/src/main/java/net/pterodactylus/sone/freenet/fcp/FcpInterface.java @@ -38,9 +38,6 @@ import freenet.support.api.Bucket; */ public class FcpInterface { - /** The core. */ - private final Core core; - /** All available FCP commands. */ private final Map commands = Collections.synchronizedMap(new HashMap()); @@ -51,7 +48,6 @@ public class FcpInterface { * The core */ public FcpInterface(Core core) { - this.core = core; commands.put("Version", new VersionCommand()); commands.put("GetPostFeed", new GetPostFeedCommand(core)); } @@ -81,8 +77,8 @@ public class FcpInterface { /* TODO - return error? */ return; } - Reply reply = command.execute(parameters, data, AccessType.values()[accessType]); try { + Reply reply = command.execute(parameters, data, AccessType.values()[accessType]); SimpleFieldSet replyParameters = reply.getReplyParameters(); replyParameters.putOverwrite("Identifier", identifier); if (reply.hasData()) { @@ -92,6 +88,8 @@ public class FcpInterface { } else { pluginReplySender.send(replyParameters); } + } catch (FcpException fe1) { + /* TODO - log, report */ } catch (PluginNotFoundException pnfe1) { /* TODO - log */ }