You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by yk...@apache.org on 2021/04/30 10:37:38 UTC
[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2352] -
fixed NPE
This is an automated email from the ASF dual-hosted git repository.
ykinash pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
new e80b013 [DATALAB-2352] - fixed NPE
new 9f5c215 Merge remote-tracking branch 'origin/DATALAB-2091' into DATALAB-2091
e80b013 is described below
commit e80b013b8963f3d60cf879ac817444d627fca820
Author: KinashYurii <ur...@gmail.com>
AuthorDate: Fri Apr 30 13:28:36 2021 +0300
[DATALAB-2352] - fixed NPE
---
.../datalab/backendapi/resources/callback/ProjectCallback.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/callback/ProjectCallback.java b/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/callback/ProjectCallback.java
index ec5c4e4..42a1297 100644
--- a/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/callback/ProjectCallback.java
+++ b/services/self-service/src/main/java/com/epam/datalab/backendapi/resources/callback/ProjectCallback.java
@@ -63,8 +63,11 @@ public class ProjectCallback {
requestId.checkAndRemove(projectResult.getRequestId());
final String projectName = projectResult.getProjectName();
final UserInstanceStatus status = UserInstanceStatus.of(projectResult.getStatus());
- List<String> gpuList = projectResult.getEdgeInfo().getGpuList();
- gpuDAO.create(new EdgeGPU(projectName, gpuList));
+ if (projectResult.getEdgeInfo().getGpuList() != null) {
+ List<String> gpuList = projectResult.getEdgeInfo().getGpuList();
+ log.info("Adding edgeGpu with gpu_types: {}, for project: {}", gpuList, projectName);
+ gpuDAO.create(new EdgeGPU(projectName, gpuList));
+ }
if (UserInstanceStatus.RUNNING == status && Objects.nonNull(projectResult.getEdgeInfo())) {
projectDAO.updateEdgeInfo(projectName, projectResult.getEndpointName(), projectResult.getEdgeInfo());
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org