Showing
1 changed file
with
3 additions
and
1 deletions
@@ -127,7 +127,9 @@ public class WorkSystemCtrl { | @@ -127,7 +127,9 @@ public class WorkSystemCtrl { | ||
127 | User user = (User) session.getAttribute("user"); | 127 | User user = (User) session.getAttribute("user"); |
128 | releaseWorkJob.setDevelop(user.getName()); | 128 | releaseWorkJob.setDevelop(user.getName()); |
129 | releaseWorkJob.setProject(releaseWorkJob.getProject().substring(1)); | 129 | releaseWorkJob.setProject(releaseWorkJob.getProject().substring(1)); |
130 | - releaseWorkJob.setTestProject(releaseWorkJob.getTestProject().substring(1)); | 130 | + if(StringUtils.isNotBlank(releaseWorkJob.getTestProject()) && releaseWorkJob.getTestProject().length() > 1){ |
131 | + releaseWorkJob.setTestProject(releaseWorkJob.getTestProject().substring(1)); | ||
132 | + } | ||
131 | BaseResponse<Integer> baseResponse = httpRestClient.defaultPost(HttpUriContants.CREATE_RELEASEWORKJOB, releaseWorkJob, BaseResponse.class); | 133 | BaseResponse<Integer> baseResponse = httpRestClient.defaultPost(HttpUriContants.CREATE_RELEASEWORKJOB, releaseWorkJob, BaseResponse.class); |
132 | return baseResponse.getData(); | 134 | return baseResponse.getData(); |
133 | } | 135 | } |
-
Please register or login to post a comment