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

Commit 810f2d9

Browse files
authored
Merge pull request #43 from google/fix_blank_line_parse_fail
Fix Blank Line Fail in Teams File
2 parents d529d1f + 6f47a62 commit 810f2d9

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)