diff --git a/src/uws/job/UWSJob.java b/src/uws/job/UWSJob.java index b714f1965d7c83bab428c5f2d6cee461e77f3324..735558d0fc6d8f9b151c276a054f3960997cf158 100644 --- a/src/uws/job/UWSJob.java +++ b/src/uws/job/UWSJob.java @@ -119,7 +119,7 @@ import uws.service.log.UWSLog.LogLevel; * </ul> * * @author Grégory Mantelet (CDS;ARI) - * @version 4.1 (11/2014) + * @version 4.1 (10/2014) */ public class UWSJob extends SerializableUWSObject { private static final long serialVersionUID = 1L; @@ -1151,14 +1151,9 @@ public class UWSJob extends SerializableUWSObject { }// Otherwise start directly the execution: else{ // Create its corresponding thread: - try{ - thread = getFactory().createJobThread(this); - if (thread == null) - throw new NullPointerException("Missing job work ! The thread created by the factory is NULL => The job can't be executed !"); - }catch(UWSException ue){ - setPhase(ExecutionPhase.ERROR); - throw ue; - } + thread = getFactory().createJobThread(this); + if (thread == null) + throw new NullPointerException("Missing job work ! The thread created by the factory is NULL => The job can't be executed !"); // Change the job phase: setPhase(ExecutionPhase.EXECUTING);