Skip to content

Commit e26fabe

Browse files
authored
Merge pull request IQSS#10366 from IQSS/10365-jsonprinter-nullsafejsonbuilder
Fixing the null-unsafe bug in JsonPrinter IQSS#10365
2 parents 6a26e63 + 9650521 commit e26fabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/edu/harvard/iq/dataverse/util/json/JsonPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ public static JsonObjectBuilder json(FileMetadata fmd){
657657
}
658658

659659
public static JsonObjectBuilder json(FileMetadata fmd, boolean returnOwners, boolean printDatasetVersion) {
660-
JsonObjectBuilder builder = jsonObjectBuilder();
660+
NullSafeJsonBuilder builder = jsonObjectBuilder();
661661

662662
// deprecated: .add("category", fmd.getCategory())
663663
// TODO: uh, figure out what to do here... it's deprecated

0 commit comments

Comments
 (0)