Skip to content

Commit d9e58e4

Browse files
committed
making path1 not nil
1 parent c7b3515 commit d9e58e4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/Wissance.Zerial/Wissance.Zerial.Desktop/App.axaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public override void OnFrameworkInitializationCompleted()
2525
{
2626
string assemblyLocation = System.Reflection.Assembly.GetExecutingAssembly().Location;
2727
string assemblyDir = Path.GetDirectoryName(assemblyLocation);
28+
// assemblyDir could be null, i found so for the chocolatey, however assemblyDir could be null, to fix this set it just to the .
29+
if (string.IsNullOrEmpty(assemblyDir))
30+
{
31+
assemblyDir = ".";
32+
}
2833
localizationDir = Path.Combine(assemblyDir, LocalizationJsonDir);
2934
}
3035
else

0 commit comments

Comments
 (0)