Created
June 3, 2012 13:23
-
-
Save alterakey/2863466 to your computer and use it in GitHub Desktop.
Beats ICS/GN crash fixup (r10)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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