From 4824fc8892c61b0ae6778f5845783715970d7f0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 13 Nov 2008 21:34:43 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20try=20to=20read=20if=20there?= =?utf8?q?=E2=80=99s=20no=20filename.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/net/pterodactylus/fcp/highlevel/HighLevelClient.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java index 231d383..84df83c 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java @@ -685,6 +685,9 @@ public class HighLevelClient { * @return The content of the file */ private String readContent(String readFilename) { + if (readFilename == null) { + return null; + } FileReader fileReader = null; BufferedReader bufferedFileReader = null; try { -- 2.7.4