Fixed NPE when a log file is chosen from command line.