From: David ‘Bombe’ Roden Date: Thu, 13 Nov 2008 20:34:43 +0000 (+0100) Subject: Don’t try to read if there’s no filename. X-Git-Tag: v0.1.1~103 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4824fc8892c61b0ae6778f5845783715970d7f0e;p=jFCPlib.git Don’t try to read if there’s no filename. --- 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 {