diff --git a/source/net/sourceforge/filebot/subtitle/SubStationAlphaReader.java b/source/net/sourceforge/filebot/subtitle/SubStationAlphaReader.java index fc0b7fb9..f111ced8 100644 --- a/source/net/sourceforge/filebot/subtitle/SubStationAlphaReader.java +++ b/source/net/sourceforge/filebot/subtitle/SubStationAlphaReader.java @@ -55,7 +55,7 @@ public class SubStationAlphaReader extends SubtitleReader { // move to [Events] sections boolean found = false; - while (!found && scanner.hasNext()) { + while (!found && scanner.hasNextLine()) { found = scanner.nextLine().equals("[Events]"); }