diff options
author | Alexander Schepp <schneeleo@gmail.com> | 2013-01-18 23:36:59 +0100 |
---|---|---|
committer | Alexander Schepp <schneeleo@gmail.com> | 2013-01-18 23:36:59 +0100 |
commit | 79a81f4365abc8db0682ceadebc64b7309d04eb8 (patch) | |
tree | 4bef6b429d0da92446ed0eec4198a31f7d3c75a0 | |
parent | 085538abd951aefb07ff9a20d8b6c557d9d6a179 (diff) | |
download | Essentials-79a81f4365abc8db0682ceadebc64b7309d04eb8.tar Essentials-79a81f4365abc8db0682ceadebc64b7309d04eb8.tar.gz Essentials-79a81f4365abc8db0682ceadebc64b7309d04eb8.tar.lz Essentials-79a81f4365abc8db0682ceadebc64b7309d04eb8.tar.xz Essentials-79a81f4365abc8db0682ceadebc64b7309d04eb8.zip |
Fix bug with empty motd
-rw-r--r-- | Essentials/src/com/earth2me/essentials/textreader/TextPager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |