class MyTableReader implements TableReader{ private String filePath public MyTableReader(String filePathCSV){ this.filePath = filePathCSV; } ~~~ public getReader( Statement stmt, String tableName){ ...File f = new File(filePath); // NullPointerException } ~~~ public List<String> getTableNames(){ .... ~~~} } Fails with NullPointerException becuase MyTableReader tableReader; // This has filePath // Create connection below: Properties props = new Properties(); props.put("suppressHeaders", "true"); conn...
class MyTableReader implements TableReader{ private String filePath public MyTableReader(String filePathCSV){ this.filePath = filePathCSV; } public getReader( Statement stmt, String tableName){ ...File f = new File(filePath); // NullPointerException } public List<String> getTableNames(){ .... } } Fails with NullPointerException becuase MyTableReader tableReader; // This has filePath // Create connection below: Properties props = new Properties(); props.put("suppressHeaders", "true"); conn = DriverManager.getConnection("jdbc:relique:csv:class:"...
class MyTableReader implements TableReader{ private String filePath public MyTableReader(String filePathCSV){ this.filePath = filePathCSV; } public getReader( Statement stmt, String tableName){ ...File f = new File(filePath); // NullPointerException } public List<String> getTableNames(){ .... } } Fails with NullPointerException becuase MyTableReader tableReader; // This has filePath // Create connection below: Properties props = new Properties(); props.put("suppressHeaders", "true"); conn = DriverManager.getConnection("jdbc:relique:csv:class:"...
class MyTableReader implements TableReader{ private String filePath public MyTableReader(String filePathCSV){ this.filePath = filePathCSV; } public getReader( Statement stmt, String tableName){ ...File f = new File(filePath); // NullPointerException // because } public List<String> getTableNames(){ .... } } Fails with NullPointerException becuase MyTableReader tableReader; // This has filePath // Create connection below: Properties props = new Properties(); props.put("suppressHeaders", "true"); conn...