Don’t try to read if there’s no filename.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 13 Nov 2008 20:34:43 +0000 (21:34 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Thu, 13 Nov 2008 20:34:43 +0000 (21:34 +0100)
src/net/pterodactylus/fcp/highlevel/HighLevelClient.java

index 231d383..84df83c 100644 (file)
@@ -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 {