radimitrov / CSharpShellApp

77 stars 18 forks source link

[Bug] Cannot open Cloud folder with special Character in Name #360

Closed Der-Floh closed 5 months ago

Der-Floh commented 5 months ago

I noticed when trying to open a Project in my OneDrive that I can't open folders containing a "#":

System.NullReferenceException: Object reference not set to an instance of an object
    at KoenZomers.OneDrive.Api.OneDriveApi+<GetAllChildrenInternal>d__69.MoveNext() 
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task, ConfigureAwaitOptions options) 
    at System.Runtime.CompilerServices.TaskAwaiter`1[[KoenZomers.OneDrive.Api.Entities.OneDriveItem[], KoenZomers.OneDrive.Api, Version=2.3.2.0, Culture=neutral, PublicKeyToken=************]].GetResult() 
    at KoenZomers.OneDrive.Api.OneDriveApi+<GetAllChildrenByPath>d__64.MoveNext()

I don't know if that also happens with other special characters

radimitrov commented 5 months ago

It looks like it does happen with all escapeable characters. I will fix that soon