Skip to content

Commit

Permalink
fix variables not null
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyongrui committed Mar 3, 2020
1 parent 99c488f commit 649883b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class X5FlowController(private val flowService: FlowService,
return try {
val jsonObject = JSON.parseObject(json)
val flowId = jsonObject.getLong(FLOW_ID)
val variables = jsonObject.getJSONObject(VARIABLES)
val variables = jsonObject.getJSONObject(VARIABLES) ?: mapOf<String, Any>()
if (!permissionService.getFlowAccessible(flowId, appId)) {
ApiResult.fail(NO_PERMISSION_MESSAGE)
} else ApiResult.success(flowService.start(flowId, variables, appId, UNKNOWN_USER))
Expand Down

0 comments on commit 649883b

Please sign in to comment.