summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schepp <schneeleo@gmail.com>2013-01-18 23:36:59 +0100
committerAlexander Schepp <schneeleo@gmail.com>2013-01-18 23:36:59 +0100
commit313fd30ce98c542e73578cd6d4bb6b0bb22e3bb0 (patch)
treee0bfe402d1fe436cb20080dccc29dfb2e656c862
parentda216b05d958ab8c2cb17b553b28adc50da1fbd4 (diff)
downloadEssentials-313fd30ce98c542e73578cd6d4bb6b0bb22e3bb0.tar
Essentials-313fd30ce98c542e73578cd6d4bb6b0bb22e3bb0.tar.gz
Essentials-313fd30ce98c542e73578cd6d4bb6b0bb22e3bb0.tar.lz
Essentials-313fd30ce98c542e73578cd6d4bb6b0bb22e3bb0.tar.xz
Essentials-313fd30ce98c542e73578cd6d4bb6b0bb22e3bb0.zip
Fix bug with empty motd
-rw-r--r--Essentials/src/com/earth2me/essentials/textreader/TextPager.java2
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)
{