Skip to content
Snippets Groups Projects
Commit 4c206fb5 authored by gmantele's avatar gmantele
Browse files

[UWS] Improve the test of an URL: it may be null or the interesting part of it...

[UWS] Improve the test of an URL: it may be null or the interesting part of it can be ; the two cases must be tested.
parent 6c0f0388
No related branches found
No related tags found
No related merge requests found
......@@ -24,13 +24,11 @@ import java.net.URLEncoder;
import java.util.Iterator;
import uws.UWSException;
import uws.job.ErrorSummary;
import uws.job.JobList;
import uws.job.Result;
import uws.job.UWSJob;
import uws.job.user.JobOwner;
import uws.service.UWS;
import uws.service.UWSUrl;
......@@ -151,7 +149,7 @@ public class XMLSerializer extends UWSSerializer {
for(JobList jobList : uws){
UWSUrl jlUrl = jobList.getUrl();
xml.append("\t\t<jobListRef name=\"").append(escapeXMLAttribute(jobList.getName())).append("\" href=\"");
if (jlUrl != null)
if (jlUrl != null && jlUrl.getRequestURL() != null)
xml.append(escapeURL(jlUrl.getRequestURL()));
xml.append("\" />\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment