Skip to content

Commit 7e94858

Browse files
committed
fixed swallowed exception in query result conversion (#213)
1 parent e67a6aa commit 7e94858

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66

77
## [Unreleased]
88

9+
- fixed swallowed exception in query result conversion (#213)
10+
911
## [3.3.0] - 2020-08-14
1012

1113
### Added

src/main/java/com/arangodb/springframework/repository/query/ArangoResultConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.springframework.data.geo.GeoResult;
4141
import org.springframework.data.geo.GeoResults;
4242
import org.springframework.data.geo.Metrics;
43+
import org.springframework.data.mapping.MappingException;
4344
import org.springframework.util.Assert;
4445

4546
import com.arangodb.ArangoCursor;
@@ -121,8 +122,7 @@ public Object convertResult(final Class<?> type) {
121122
}
122123
return TYPE_MAP.get(type).invoke(this);
123124
} catch (final Exception e) {
124-
e.printStackTrace();
125-
return null;
125+
throw new MappingException(String.format("Can't convert result to type %s!", type.getName()), e);
126126
}
127127
}
128128

0 commit comments

Comments
 (0)