Skip to content

Commit 9650521

Browse files
committed
The promised one line fix for the bug in JsonPrinter. IQSS#10365
1 parent 6a26e63 commit 9650521

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)