Skip to content

BUG: QueryHistory NullReferenceException everytime I open something #4246

@soakb432

Description

@soakb432

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

  • I am using the prerelease version of Flow Launcher.

Problem Description

Flow Launcher version: 2.0.3
OS Version: 22000.2538
IntPtr Length: 8
x64: True

Python Path: C:\Users\Rodolfo Torres\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.11.4\pythonw.exe
Node Path:

Date: 02/02/2026 20:25:30
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Flow.Launcher.Storage.History.Add(String query) in C:\projects\flow-launcher\Flow.Launcher\Storage\QueryHistory.cs:line 23
at Flow.Launcher.ViewModel.MainViewModel.OpenResultAsync(String index) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 533
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

To Reproduce

  1. ...
  2. ...
  3. ...

Screenshots

No response

Flow Launcher Version

2.0.3

Windows Build Number

10.0.22000.2538

Error Log

2026-02-02.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions