We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5654263 commit 407a728Copy full SHA for 407a728
1 file changed
moneta-core/src/main/java/org/javamoney/moneta/spi/AbstractRateProvider.java
@@ -188,10 +188,12 @@ protected LocalDate[] getQueryDates(ConversionQuery query) {
188
protected URI getResourceFromPath(String path, Class<?> clazz) {
189
final URL url = clazz.getResource(path);
190
URI resource = null;
191
- try {
192
- resource = url.toURI();
193
- } catch (URISyntaxException e) {
194
- LOG.warning(e.getMessage());
+ if (url != null) {
+ try {
+ resource = url.toURI();
+ } catch (URISyntaxException e) {
195
+ LOG.warning(e.getMessage());
196
+ }
197
}
198
return resource;
199
0 commit comments