#5248: Handle null exception

This commit is contained in:
Jaex 2020-12-07 01:34:50 +03:00
parent f86d009686
commit 40164f9413

View file

@ -1505,7 +1505,7 @@ private void lvActions_ItemMoved(object sender, int oldIndex, int newIndex)
private void WatchFolderAdd(WatchFolderSettings watchFolderSetting)
{
if (watchFolderSetting != null)
if (Program.WatchFolderManager != null && watchFolderSetting != null)
{
Program.WatchFolderManager.AddWatchFolder(watchFolderSetting, TaskSettings);