Skip to content

Commit

Permalink
Fixed NullPointerException in the Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
JPZV committed Nov 22, 2020
1 parent 721cedf commit f04acfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ml/jordie/vatsimnotify/vatsim/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void parse() {
ArrayList<String> lines = new ArrayList<>();

String line = br.readLine();
while (!(line = br.readLine()).equalsIgnoreCase("!SERVERS:"))
while ((line = br.readLine()) != null && !line.equalsIgnoreCase("!SERVERS:"))
if (!line.startsWith(";") || !line.startsWith("!"))
lines.add(line);

Expand Down

0 comments on commit f04acfd

Please sign in to comment.