BufferedReader modelReader = Files.newBufferedReader(Paths.get(args[1]), StandardCharsets.UTF_8)) {
String chartTitle = modelReader.readLine(); // first line is chart title
- String[] series = modelReader.readLine().split(",");
+ String seriesText = modelReader.readLine();
+ String[] series = seriesText == null ? new String[0] : seriesText.split(",");
// Category Axis Data
List<String> listLanguages = new ArrayList<>(10);
try (BufferedReader modelReader = Files.newBufferedReader(Paths.get(args[0]), StandardCharsets.UTF_8)) {
String chartTitle = modelReader.readLine(); // first line is chart title
- String[] series = modelReader.readLine().split(",");
+ String seriesText = modelReader.readLine();
+ String[] series = seriesText == null ? new String[0] : seriesText.split(",");
// Category Axis Data
List<String> listLanguages = new ArrayList<>(10);
try (BufferedReader modelReader = Files.newBufferedReader(Paths.get(args[0]), StandardCharsets.UTF_8)) {
String chartTitle = modelReader.readLine(); // first line is chart title
- String[] series = modelReader.readLine().split(",");
+ String seriesText = modelReader.readLine();
+ String[] series = seriesText == null ? new String[0] : seriesText.split(",");
// Category Axis Data
List<String> listLanguages = new ArrayList<>(10);
BufferedReader modelReader = Files.newBufferedReader(Paths.get(args[1]), StandardCharsets.UTF_8)) {
String chartTitle = modelReader.readLine(); // first line is chart title
- String[] series = modelReader.readLine().split(",");
+ String seriesText = modelReader.readLine();
+ String[] series = seriesText == null ? new String[0] : seriesText.split(",");
// Category Axis Data
List<String> listLanguages = new ArrayList<>(10);
try (BufferedReader modelReader = Files.newBufferedReader(Paths.get(args[0]), StandardCharsets.UTF_8)) {
String chartTitle = modelReader.readLine(); // first line is chart title
- String[] series = modelReader.readLine().split(",");
+ String seriesText = modelReader.readLine();
+ String[] series = seriesText == null ? new String[0] : seriesText.split(",");
// Category Axis Data
List<String> listLanguages = new ArrayList<>(10);