From f5e3774b152bf018c7595a49181c75a20432fe0c Mon Sep 17 00:00:00 2001 From: Alexander Schepp Date: Fri, 18 Jan 2013 23:36:59 +0100 Subject: [PATCH] Fix bug with empty motd --- .../src/com/earth2me/essentials/textreader/TextPager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/textreader/TextPager.java b/Essentials/src/com/earth2me/essentials/textreader/TextPager.java index c9353f89e..d03762ded 100644 --- a/Essentials/src/com/earth2me/essentials/textreader/TextPager.java +++ b/Essentials/src/com/earth2me/essentials/textreader/TextPager.java @@ -36,7 +36,7 @@ public class TextPager { //If an info file starts with a chapter title, list the chapters //If not display the text up until the first chapter. - if (lines.get(0).startsWith("#")) + if (!lines.isEmpty() && lines.get(0).startsWith("#")) { if (onePage) {