mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
#5248: Handle null exception
This commit is contained in:
parent
f86d009686
commit
40164f9413
1 changed files with 1 additions and 1 deletions
|
@ -1505,7 +1505,7 @@ private void lvActions_ItemMoved(object sender, int oldIndex, int newIndex)
|
||||||
|
|
||||||
private void WatchFolderAdd(WatchFolderSettings watchFolderSetting)
|
private void WatchFolderAdd(WatchFolderSettings watchFolderSetting)
|
||||||
{
|
{
|
||||||
if (watchFolderSetting != null)
|
if (Program.WatchFolderManager != null && watchFolderSetting != null)
|
||||||
{
|
{
|
||||||
Program.WatchFolderManager.AddWatchFolder(watchFolderSetting, TaskSettings);
|
Program.WatchFolderManager.AddWatchFolder(watchFolderSetting, TaskSettings);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue