diff options
Diffstat (limited to 'ppapi/example/example.cc')
-rw-r--r-- | ppapi/example/example.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc index f3965f2..5dc3842 100644 --- a/ppapi/example/example.cc +++ b/ppapi/example/example.cc @@ -303,6 +303,8 @@ int gettimeofday(struct timeval *tv, struct timezone*) { void UpdateFps() { pp::VarPrivate window = GetWindowObject(); + if (window.is_undefined()) + return; pp::VarPrivate doc = window.GetProperty("document"); pp::VarPrivate fps = doc.Call("getElementById", "fps"); |