Skip to content

Commit 27556e7

Browse files
committed
Explicitly check if windows exist when run as Dbus service
1 parent 1ed22ef commit 27556e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/gx/terminix/application.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ private:
464464
if (appWindow !is null) return appWindow;
465465

466466
ListG list = getWindows();
467+
if (list is null) return null;
467468
Window[] windows = list.toArray!(Window)();
468469
foreach(window; windows) {
469470
appWindow = cast(AppWindow) window;

0 commit comments

Comments
 (0)