1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 00:20:25 +02:00

Fixed FileWatcher overflow manual override

This commit is contained in:
Brian Fiete 2020-11-04 06:51:30 -08:00
parent 07cdbbf142
commit 716ec05394
4 changed files with 51 additions and 5 deletions

View file

@ -89,7 +89,7 @@ namespace IDE
var newPath;
if (isDirectory)
{
if (newPath.EndsWith(Path.DirectorySeparatorChar))
if ((newPath != null) && (newPath.EndsWith(Path.DirectorySeparatorChar)))
{
newPath = scope:: String();
newPath.Append(@newPath, 0, @newPath.Length - 1);
@ -259,9 +259,9 @@ namespace IDE
{
String fullPath = scope String();
fullPath.Append(fileSystemWatcher.Directory);
fullPath.Append(Path.DirectorySeparatorChar);
if (fileName != null)
{
fullPath.Append(Path.DirectorySeparatorChar);
fullPath.Append(fileName);
}