Author: [log in to unmask] Date: Thu Sep 22 10:22:22 2016 New Revision: 4494 Log: Handle empty line at end of file Modified: java/trunk/recon/src/main/java/org/hps/recon/filtering/LcioEventSkimmer.java Modified: java/trunk/recon/src/main/java/org/hps/recon/filtering/LcioEventSkimmer.java ============================================================================= --- java/trunk/recon/src/main/java/org/hps/recon/filtering/LcioEventSkimmer.java (original) +++ java/trunk/recon/src/main/java/org/hps/recon/filtering/LcioEventSkimmer.java Thu Sep 22 10:22:22 2016 @@ -36,7 +36,7 @@ System.out.println(_inputFileName); } Scanner scan = new Scanner(new File(_inputFileName)); - while (scan.hasNextLine()) { + while (scan.hasNextLine()&& !scan.nextLine().isEmpty()) { int runNum = scan.nextInt(); int eventNum = scan.nextInt(); if (_debug) {