mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Null check order bug can throw NRE
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
e98f7907b8
commit
0b7c0408f8
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ public static class RenameThing
|
|||
public static void Rename(string NewFileName, FileSystemInfo oldInfo)
|
||||
{
|
||||
// if it's just whitespace and nothing else
|
||||
if (string.IsNullOrEmpty(NewFileName.Trim()) || string.IsNullOrEmpty(NewFileName))
|
||||
if (string.IsNullOrWhiteSpace(NewFileName))
|
||||
{
|
||||
Main.Context.API.ShowMsgError(Localize.plugin_explorer_field_may_not_be_empty());
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue