From 3d6bd5155686f17da9416461542dbea04c12fc45 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Sun, 14 Mar 2021 07:58:27 +0530 Subject: [PATCH] Fix NPE in action execution analytics (#3541) The NPE noticed is with the return value of `.getStatusCode`. But this PR adds NPE guards to a few other potential cases. --- .../com/appsmith/server/services/NewActionServiceImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/NewActionServiceImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/NewActionServiceImpl.java index 99661c0e0e..7dc85195fc 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/NewActionServiceImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/NewActionServiceImpl.java @@ -42,6 +42,7 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.ArrayUtils; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.data.domain.Sort; import org.springframework.data.mongodb.core.ReactiveMongoTemplate; import org.springframework.data.mongodb.core.convert.MongoConverter; @@ -753,10 +754,10 @@ public class NewActionServiceImpl extends BaseService