File tree Expand file tree Collapse file tree
src/main/java/edu/harvard/iq/dataverse/api Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments