Skip to content

Instantly share code, notes, and snippets.

@alterakey
Created June 3, 2012 13:23
Show Gist options
  • Save alterakey/2863466 to your computer and use it in GitHub Desktop.
Save alterakey/2863466 to your computer and use it in GitHub Desktop.
Beats ICS/GN crash fixup (r10)
Index: src/com/beatsportable/beats/GUIGame.java
===================================================================
--- src/com/beatsportable/beats/GUIGame.java (revision 10)
+++ src/com/beatsportable/beats/GUIGame.java (working copy)
@@ -571,7 +571,8 @@
}
// Just in case
- if (h == null) {
+ // GN (4.0.4) tends to reach here with null canvas (kinda race condition?)
+ if (h == null || canvas == null) {
super.onDraw(canvas);
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment