Skip to content

Commit

Permalink
Add nil pointer check
Browse files Browse the repository at this point in the history
  • Loading branch information
iaincalderfh committed Oct 27, 2021
1 parent c1c3655 commit 7bb1a96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (lrm *LockedResourceManager) SetPatches(patches []lockedpatch.LockedPatch)

// IsStarted returns whether the LockedResourceManager is started
func (lrm *LockedResourceManager) IsStarted() bool {
return lrm.stoppableManager.IsStarted()
return lrm.stoppableManager != nil && lrm.stoppableManager.IsStarted()
}

// Start starts the LockedResourceManager
Expand Down

0 comments on commit 7bb1a96

Please sign in to comment.