mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Fix NPEs
This commit is contained in:
@ -1083,7 +1083,7 @@ public class GenerateOpenApiSpecAction extends AbstractQActionFunction<GenerateO
|
||||
}
|
||||
|
||||
String description = "Value for the " + fieldLabel + " field.";
|
||||
if(apiFieldMetaData.getDescription() != null)
|
||||
if(apiFieldMetaData != null && apiFieldMetaData.getDescription() != null)
|
||||
{
|
||||
description = apiFieldMetaData.getDescription();
|
||||
}
|
||||
|
@ -299,6 +299,9 @@ public class ApiScriptUtils implements QCodeExecutorAware, Serializable
|
||||
validateApiNameAndVersion("runProcess(" + processApiName + ")");
|
||||
|
||||
Map<String, String> paramMap = new LinkedHashMap<>();
|
||||
|
||||
if(params != null)
|
||||
{
|
||||
params = processBodyToJsonString(params);
|
||||
String paramsString = ValueUtils.getValueAsString(params);
|
||||
if(StringUtils.hasContent(paramsString))
|
||||
@ -309,6 +312,7 @@ public class ApiScriptUtils implements QCodeExecutorAware, Serializable
|
||||
paramMap.put(fieldName, paramsJSON.optString(fieldName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HttpApiResponse httpApiResponse = ApiImplementation.runProcess(getApiInstanceMetaData(), apiVersion, processApiName, paramMap);
|
||||
return (httpApiResponse.getResponseBodyObject());
|
||||
|
Reference in New Issue
Block a user