#152: Fixed null pointer issue when apps are not installed
This commit is contained in:
@@ -460,7 +460,7 @@ class AppBase:
|
|||||||
baseresult = ""
|
baseresult = ""
|
||||||
actionname_lower = actionname.lower()
|
actionname_lower = actionname.lower()
|
||||||
try:
|
try:
|
||||||
if actionname_lower == "exec" || actionname_lower == "webhook" || actionname_lower == "schedule" || actionname_lower == "userinput" || actionname_lower == "email_trigger" || actionname_lower == "trigger":
|
if actionname_lower == "exec" or actionname_lower == "webhook" or actionname_lower == "schedule" or actionname_lower == "userinput" or actionname_lower == "email_trigger" or actionname_lower == "trigger":
|
||||||
baseresult = execution_data["execution_argument"]
|
baseresult = execution_data["execution_argument"]
|
||||||
else:
|
else:
|
||||||
for result in execution_data["results"]:
|
for result in execution_data["results"]:
|
||||||
|
|||||||
@@ -404,11 +404,10 @@ func makePythoncode(swagger *openapi3.Swagger, name, url, method string, paramet
|
|||||||
bodyAddin,
|
bodyAddin,
|
||||||
verifyAddin,
|
verifyAddin,
|
||||||
)
|
)
|
||||||
|
//if strings.Contains(functionname, "get_returns_the_vuln") {
|
||||||
if strings.Contains(functionname, "get_returns_the_vuln") {
|
// log.Println(data)
|
||||||
log.Println(data)
|
// log.Printf("Queries: %s", queryString)
|
||||||
log.Printf("Queries: %s", queryString)
|
//}
|
||||||
}
|
|
||||||
|
|
||||||
//log.Printf(data)
|
//log.Printf(data)
|
||||||
return functionname, data
|
return functionname, data
|
||||||
|
|||||||
@@ -1916,6 +1916,7 @@ func abortExecution(resp http.ResponseWriter, request *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Check the execution if this fails.
|
||||||
user, err := handleApiAuthentication(resp, request)
|
user, err := handleApiAuthentication(resp, request)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Api authentication failed in abort workflow: %s", err)
|
log.Printf("Api authentication failed in abort workflow: %s", err)
|
||||||
|
|||||||
@@ -542,22 +542,24 @@ const Workflows = (props) => {
|
|||||||
</div>
|
</div>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid container style={{maxWidth: 35, marginRight: 10,}}>
|
{data.actions !== undefined && data.actions !== null ?
|
||||||
<Tooltip title={`Actions: ${data.actions.length}`} placement="right">
|
<Grid container style={{maxWidth: 35, marginRight: 10,}}>
|
||||||
<AppsIcon style={{width: imgSize, height: imgSize}} />
|
<Tooltip title={`Actions: ${data.actions.length}`} placement="right">
|
||||||
</Tooltip>
|
<AppsIcon style={{width: imgSize, height: imgSize}} />
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
{webhooks > 0 ?
|
{webhooks > 0 ?
|
||||||
<Tooltip title={`Webhooks: ${webhooks}`} placement="right">
|
<Tooltip title={`Webhooks: ${webhooks}`} placement="right">
|
||||||
<img alt={data.title} style={{width: imgSize, height: imgSize, marginTop: 5}} src={webhookImg} />
|
<img alt={data.title} style={{width: imgSize, height: imgSize, marginTop: 5}} src={webhookImg} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
: null}
|
: null}
|
||||||
{schedules > 0 ?
|
{schedules > 0 ?
|
||||||
<Tooltip title={`Schedules: ${schedules}`} placement="right">
|
<Tooltip title={`Schedules: ${schedules}`} placement="right">
|
||||||
<img alt={data.title} style={{width: imgSize, height: imgSize, marginTop: 5}} src={scheduleImg} />
|
<img alt={data.title} style={{width: imgSize, height: imgSize, marginTop: 5}} src={scheduleImg} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
: null}
|
: null}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
: null}
|
||||||
</Paper>
|
</Paper>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user