Skip to content
This repository was archived by the owner on Sep 19, 2021. It is now read-only.

Commit 6f47a62

Browse files
committed
Fix Blank Line Fail in Teams File
When the relay loads team data it tries to parse an empty string. It should just skip empty strings. Closes #31
1 parent d529d1f commit 6f47a62

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/codeu/chat/RelayMain.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ private static void loadTeamInfo(Server relay, String file) {
114114

115115
line = line.trim();
116116

117-
if (line.startsWith("#")) {
117+
if (line.length() == 0) {
118+
// This line is blank, skip it
119+
} else if (line.startsWith("#")) {
118120
// this is a comment, skip it
119121
} else {
120122

0 commit comments

Comments
 (0)