Skip to content

Commit

Permalink
Fix: Handle NullPointerException when instantiating EARKSIP without a…
Browse files Browse the repository at this point in the history
… version.

Closes #254.
  • Loading branch information
ThomasEdvardsen authored and hmiguim committed Feb 23, 2024
1 parent 09ffc4f commit 5df3a23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public EARKSIP(String sipId) {
* will be used as OBJID in METS (/mets[@OBJID])
*/
public EARKSIP(String sipId, IPContentType contentType, IPContentInformationType contentInformationType) {
new EARKSIP(sipId, contentType, contentInformationType, DEFAULT_SIP_VERSION);
this(sipId, contentType, contentInformationType, DEFAULT_SIP_VERSION);
}

public EARKSIP(String sipId, IPContentType contentType, IPContentInformationType contentInformationType, String version) {
Expand Down

0 comments on commit 5df3a23

Please sign in to comment.