Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 6902011: Cope gracefully with scripts querying stats before client has started. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 874e3365829638914924eeaa427874374cda84b5..e5a1bf9bb7af1014bb2128aaff1e9157c1af93f2 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -291,6 +291,8 @@ pp::Var ChromotingInstance::GetInstanceObject() {
}
ChromotingStats* ChromotingInstance::GetStats() {
+ if (client_.get() == NULL)
Alpha Left Google 2011/04/25 23:14:24 nit: if (!client_.get()) to be consistent.
+ return NULL;
return client_->GetStats();
}
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/chromoting_scriptable_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698