Skip to content

Commit e7357f2

Browse files
committed
Merge branch 'develop' into 2579-DDI-export
2 parents b542811 + 307d9a1 commit e7357f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/api/WorldMapRelatedData.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public Response updateWorldMapLayerData(String jsonLayerData){
616616
// - isJoinLayer
617617
// - joinDescription
618618
//
619-
String joinDescription = jsonInfo.getString("joinDescription");
619+
String joinDescription = jsonInfo.getString("joinDescription", null);
620620
if ((joinDescription == null) || (joinDescription.equals(""))){
621621
mapLayerMetadata.setIsJoinLayer(true);
622622
mapLayerMetadata.setJoinDescription(joinDescription);
@@ -627,8 +627,8 @@ public Response updateWorldMapLayerData(String jsonLayerData){
627627

628628
// Set the mapLayerLinks
629629
//
630-
String mapLayerLinks = jsonInfo.getString("mapLayerLinks");
631-
if (mapLayerLinks == null){
630+
String mapLayerLinks = jsonInfo.getString("mapLayerLinks", null);
631+
if ((mapLayerLinks == null) || (mapLayerLinks.equals(""))){
632632
mapLayerMetadata.setMapLayerLinks(null);
633633
}else{
634634
mapLayerMetadata.setMapLayerLinks(mapLayerLinks);

0 commit comments

Comments
 (0)