orcid-no-doi #43
|
@ -97,8 +97,8 @@ public class PublicationToOaf implements Serializable {
|
|||
.getResourceAsStream(
|
||||
"/eu/dnetlib/dhp/doiboost/orcidnodoi/mappings/typologies.json"));
|
||||
typologiesMapping = new Gson().fromJson(tt, Map.class);
|
||||
} catch (final Exception e) {
|
||||
logger.error("loading typologies", e);
|
||||
} catch (Exception 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.