From: David ‘Bombe’ Roden Date: Wed, 9 Apr 2008 11:14:50 +0000 (+0000) Subject: fix warning with an assertion X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fba184e707edc02ac0f7fc89a4378549a4602476;p=jSite2.git fix warning with an assertion git-svn-id: http://trooper/svn/projects/jSite/trunk@658 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/util/fcp/FcpConnectionHandler.java b/src/net/pterodactylus/util/fcp/FcpConnectionHandler.java index cbea0e2..67dd65e 100644 --- a/src/net/pterodactylus/util/fcp/FcpConnectionHandler.java +++ b/src/net/pterodactylus/util/fcp/FcpConnectionHandler.java @@ -94,6 +94,7 @@ public class FcpConnectionHandler implements Runnable { } String field = line.substring(0, equalSign); String value = line.substring(equalSign + 1); + assert fcpMessage != null : "fcp message is null"; fcpMessage.setField(field, value); } catch (IOException e) { break;