atos1990 / orika

Automatically exported from code.google.com/p/orika
0 stars 0 forks source link

NoSuchElementException mapping empty lists #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

MapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();
mapperFactory.registerClassMap(ClassMapBuilder.map(Object.class,Object.class).by
Default().toClassMap());
List<Object> listA = new ArrayList<Object>();
mapperFactory.getMapperFacade().mapAsList(listA, Object.class);

What is the expected output? What do you see instead?
An empty array is expected but a NoSuchElementException is thrown

What version of the product are you using? On what operating system?
Orika 1.1.2 with JDK 1.6

Please provide any additional information below.

Original issue reported on code.google.com by fago.ma...@gmail.com on 16 May 2012 at 12:20

GoogleCodeExporter commented 9 years ago
Fixed in 1.2.0 branch

Original comment by matt.deb...@gmail.com on 23 May 2012 at 3:59