Add null check for window in Plugin.end_switch_workspace

This commit is contained in:
Tom Beckmann 2012-09-01 19:42:18 +02:00
parent 8d0058da80
commit 4b6bd93392

View File

@ -722,7 +722,7 @@ namespace Gala
for (var i=0;i<win.length ();i++) { for (var i=0;i<win.length ();i++) {
var window = win.nth_data (i); var window = win.nth_data (i);
if (window.is_destroyed ()) if (window == null || window.is_destroyed ())
continue; continue;
if (window.get_parent () == out_group) { if (window.get_parent () == out_group) {