Skip to content

Commit

Permalink
fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
LazuliKao committed Apr 4, 2023
1 parent d5b2450 commit 798f096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LipUI/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ void Save()
{
Directory.CreateDirectory(dir);
}
File.WriteAllText(fp, result.ToString());
File.WriteAllText(fp, result?.ToString());
}
catch
{
Expand Down
2 changes: 1 addition & 1 deletion src/LipUI/ViewModels/InstallPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public async Task FetchInfo()
});
if (success)
{
if (ToothInfoPanel.Tooth != ToothName)
if (ToothInfoPanel?.Tooth != ToothName)
{
ToothInfoPanel = new ToothInfoPanelViewModel(package!)
{
Expand Down

0 comments on commit 798f096

Please sign in to comment.