aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer/sk_app/unix/main_unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/viewer/sk_app/unix/main_unix.cpp')
-rw-r--r--tools/viewer/sk_app/unix/main_unix.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/viewer/sk_app/unix/main_unix.cpp b/tools/viewer/sk_app/unix/main_unix.cpp
index a5e7004423..beb3eda10e 100644
--- a/tools/viewer/sk_app/unix/main_unix.cpp
+++ b/tools/viewer/sk_app/unix/main_unix.cpp
@@ -1,4 +1,5 @@
/*
+
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
@@ -53,7 +54,9 @@ int main(int argc, char**argv) {
XNextEvent(display, &event);
sk_app::Window_unix* win = sk_app::Window_unix::gWindowMap.find(event.xany.window);
- SkASSERT(win);
+ if (!win) {
+ continue;
+ }
// paint and resize events get collapsed
switch (event.type) {