1
0
forked from rosa/hakurei

cmd/hakurei/print: handle nil config

There is nothing to print in this case, and such a nil check is missing.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-11-03 02:20:18 +09:00
parent ec5cb9400c
commit 9a2a7b749f
2 changed files with 17 additions and 11 deletions

View File

@@ -59,6 +59,7 @@ func TestPrintShowInstance(t *testing.T) {
want string
valid bool
}{
{"nil", nil, nil, false, false, "Error: invalid configuration!\n\n", false},
{"config", nil, hst.Template(), false, false, `App
Identity: 9 (org.chromium.Chromium)
Enablements: wayland, dbus, pulseaudio