|
|
@@ -15,6 +15,8 @@ import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
+import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
+import com.fasterxml.jackson.databind.JsonMappingException;
|
|
|
import com.fasterxml.jackson.databind.JsonNode;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
|
|
@@ -333,7 +335,17 @@ public class InstanciaTascaService {
|
|
|
|
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
|
|
|
|
- JsonNode root = mapper.readTree(it.getTasca().getOpcions());
|
|
|
+ JsonNode root = null;
|
|
|
+ try {
|
|
|
+ root = mapper.readTree(it.getTasca().getOpcions());
|
|
|
+ } catch (JsonMappingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return it;
|
|
|
+ } catch (JsonProcessingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return it;
|
|
|
+ }
|
|
|
+
|
|
|
JsonNode actions = root.get("accions");
|
|
|
|
|
|
List<String> selectedPaths = new ArrayList<>();
|