Skip to content

Commit

Permalink
fix attempt to index a nil value (local 'child') #3481 (#3485)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuxiao9058 authored Dec 10, 2023
1 parent 5f670c2 commit 53ae599
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/spaces/spaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,10 @@ module.gotoSpace = function(...)
waitForMissionControl()

local child = mcSpacesList[count]
if child == nil then
return nil, 'child is nil'
end

local status, errMsg2 = child:performAction("AXPress")
if status then
return true
Expand Down

0 comments on commit 53ae599

Please sign in to comment.