From: David ‘Bombe’ Roden Date: Tue, 13 Jan 2015 20:03:46 +0000 (+0100) Subject: Don’t access optional that’s clearly not set. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=519f934e9c19bbc6ca80617c1322dff4cec94fe8;hp=b6341e3bc7a87371e9b4f1734fccda3a2959bed2;p=xudocci.git Don’t access optional that’s clearly not set. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index c2eaae8..3b1e639 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -631,7 +631,7 @@ public class Core extends AbstractExecutionThreadService { Optional channel = getChannel(network.get(), channelNotJoined.channel()); if (!channel.isPresent()) { - eventBus.post(new GenericMessage(format("Could not join %s but didn’t try to join, either.", channel.get()))); + eventBus.post(new GenericMessage(format("Could not join %s but didn’t try to join, either.", channelNotJoined.channel()))); return; }