orcid-no-doi #43
|
@ -97,8 +97,8 @@ public class PublicationToOaf implements Serializable {
|
||||||
.getResourceAsStream(
|
.getResourceAsStream(
|
||||||
"/eu/dnetlib/dhp/doiboost/orcidnodoi/mappings/typologies.json"));
|
"/eu/dnetlib/dhp/doiboost/orcidnodoi/mappings/typologies.json"));
|
||||||
typologiesMapping = new Gson().fromJson(tt, Map.class);
|
typologiesMapping = new Gson().fromJson(tt, Map.class);
|
||||||
} catch (final Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("loading typologies", e);
|
throw new RuntimeException("loading typologies", e);
|
||||||
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
This should not happen as this is statically defined, but please let the exception propagate with some subclass of
Throwable
so that it will break immediately. Otherwise thetypologiesMapping
variable will stay defined asnull
causing the 1st usage to break with a NPE.