Skip to content

Commit 8dc4c0e

Browse files
committed
Add assertion of 0 length File array in case of an empty String provided for String to File Array conversion
1 parent d476e5c commit 8dc4c0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/test/java/org/scijava/convert/FileListConverterTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void testStringToFileArrayConverter() {
6969
conv.convert(path, File[].class)[0]);
7070
assertEquals("Wrong file name", new File("C:\\temp"),
7171
conv.convert(path, File[].class)[1]);
72+
assertEquals( 0, conv.convert( "", File[].class ).length );
7273
}
7374

7475
@Test

0 commit comments

Comments
 (0)