Skip to content

Commit

Permalink
fixes for legal references validation - refs #88551
Browse files Browse the repository at this point in the history
  • Loading branch information
vskiadas90 committed Apr 29, 2020
1 parent 8f4ae56 commit 87bdfe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>eionet.natura2000</groupId>
<artifactId>SDFmanager</artifactId>
<packaging>jar</packaging>
<version>4.3.7</version>
<version>4.3.8</version>
<name>SDFmanager</name>
<url>http://maven.apache.org</url>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sdf_manager/ExporterSiteXML.java
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ public static Document generateXML(Session session, ArrayList<String> sitecodes,
doc.createTextNode(fmt("0000-00", "spaClassificationDate")));
}
**/
if(!site.getSiteSpaLegalRef().equals("")) {
if(site.getSiteSpaLegalRef()!=null &&!site.getSiteSpaLegalRef().equals("")) {
siteIdentification.appendChild(doc.createElement("spaLegalReference")).appendChild(
doc.createTextNode(fmt(site.getSiteSpaLegalRef(), "spaLegalReference")));
}
Expand Down

0 comments on commit 87bdfe5

Please sign in to comment.