We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e448387 commit 51788a1Copy full SHA for 51788a1
Tools/LambdaTestTool/src/Amazon.Lambda.TestTool/LocalLambdaOptions.cs
@@ -63,7 +63,7 @@ public string GetPreferenceDirectory(bool createIfNotExist)
63
var currentDirectory = this.LambdaRuntime.LambdaAssemblyDirectory;
64
while (currentDirectory != null && !Utils.IsProjectDirectory(currentDirectory))
65
{
66
- currentDirectory = Directory.GetParent(currentDirectory).FullName;
+ currentDirectory = Directory.GetParent(currentDirectory)?.FullName;
67
}
68
69
if (currentDirectory == null)
0 commit comments