Flow-Launcher / Flow-Launcher/Flow.Launcher

BUG: QueryHistory NullReferenceException everytime I open something

Open
#4,246 2 comments 0 reactions 0 assignees View on GitHub
bug keep-fresh Needs investigation
Dominant language
C#
Stars
15.6k
Forks
644
Avg merge
16h 51m
Merged PRs (30d)
3

Description

### Checks

- [ ] I have checked that this issue has not already been reported.

- [x] 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](https://github.com/user-attachments/files/25027252/2026-02-02.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.