Skip to content

Commit 2006a3a

Browse files
committed
Add null check
1 parent c5356d9 commit 2006a3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/HidableWindow.vala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ public class Gala.HidableWindow : GLib.Object {
8686
}
8787

8888
public Mtk.Rectangle get_frame_rect () {
89+
return_val_if_fail (window == null, Mtk.Rectangle (0, 0, 0, 0));
90+
8991
var window_rect = window.get_frame_rect ();
9092
window_rect.x = actual_x;
9193
window_rect.y = actual_y;

0 commit comments

Comments
 (0)