-
-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Description
@Test public void testEmptyStream() throws InterruptedException { log.info("Start"); SimpleModule module = new SimpleModule(); CsvMapper csvMapper = new CsvMapper(); csvMapper.registerModule(module); try { InputStreamReader reader = null; CsvSchema columns = CsvSchema.emptySchema().withHeader().withColumnSeparator(';'); csvMapper.readerFor(Map.class).with(columns).readValues(reader); } catch (IOException e) { log.warn("Can't read data from csv file {}", e); } log.info("finish"); }
provided code can freeze execution of the thread completely
tested with: 2.9.8 version