fix warning with an assertion
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Apr 2008 11:14:50 +0000 (11:14 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 9 Apr 2008 11:14:50 +0000 (11:14 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@658 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/util/fcp/FcpConnectionHandler.java

index cbea0e2..67dd65e 100644 (file)
@@ -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;