Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$currentAction.Parent could be $null, length property will then fail #25

Closed
acieslik opened this issue Aug 29, 2023 · 2 comments
Closed

Comments

@acieslik
Copy link

logicappdocs/src/Helper.ps1

Lines 172 to 173 in 40dc946

# Current error is that there can be an newly created action that does not have a paret property.???
elseif ($Actions | Where-Object { $_.RunAfter -eq $(('{0}-False') -f $(($currentAction.Parent).Substring(0, ($currentAction.Parent).length - 5))) } ) {

line 173 should be replaced with:
elseif (($null -ne $currentAction.Parent) -and ($Actions | Where-Object { $_.RunAfter -eq $(('{0}-False') -f $(($currentAction.Parent).Substring(0, ($currentAction.Parent).length - 5))) } )) {

@stefanstranger
Copy link
Owner

Hi @acieslik,

Sorry for not responding earlier. I was a bit busy and on holiday. Hope to find some time next weeks.

/Stefan

@stefanstranger
Copy link
Owner

Finally found time to create PR and fix this issue. So sorry @acieslik that it took this long to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants