diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 218: Android: Fix crash when 'args' extra parameter is undefined.

Message ID 20120524112015.17302.98874.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org May 24, 2012, 11:20 a.m. UTC
------------------------------------------------------------
revno: 218
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
branch nick: trunk
timestamp: Thu 2012-05-24 12:54:11 +0300
message:
  Android: Fix crash when 'args' extra parameter is undefined.
modified:
  android/src/org/linaro/glmark2/Glmark2SurfaceView.java


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'android/src/org/linaro/glmark2/Glmark2SurfaceView.java'
--- android/src/org/linaro/glmark2/Glmark2SurfaceView.java	2012-05-15 12:39:38 +0000
+++ android/src/org/linaro/glmark2/Glmark2SurfaceView.java	2012-05-24 09:54:11 +0000
@@ -53,6 +53,9 @@ 
     private EGLConfigChooser getConfigChooser() {
         String args = mActivity.getIntent().getStringExtra("args");
 
+        if (args == null)
+            args = "";
+
         String[] argv = args.split(" ");
 
         /* Find the visual-config option argument */