Index: remoting/host/disconnect_window_mac.mm |
diff --git a/remoting/host/disconnect_window_mac.mm b/remoting/host/disconnect_window_mac.mm |
index f6f5e9a6fb8f62c04fa6f0412261a82720019ab9..bccd31c97eec7e25b7db21db274d1ef293497172 100644 |
--- a/remoting/host/disconnect_window_mac.mm |
+++ b/remoting/host/disconnect_window_mac.mm |
@@ -96,7 +96,11 @@ scoped_ptr<DisconnectWindow> DisconnectWindow::Create() { |
} |
- (BOOL)isRToL { |
- return host_->ui_strings().direction == remoting::UiStrings::RTL; |
+ if (host_) { |
+ return host_->ui_strings().direction == remoting::UiStrings::RTL; |
+ } else { |
+ return false; |
+ } |
} |
- (void)close { |