From patchwork Thu May 24 11:20:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 8944 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 352AC1991E1 for ; Thu, 24 May 2012 11:20:19 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id F0B8EA184F1 for ; Thu, 24 May 2012 11:20:18 +0000 (UTC) Received: by ggnf1 with SMTP id f1so9270958ggn.11 for ; Thu, 24 May 2012 04:20:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=2NJ2YCcPnAcn53ZM+LDfe7i1lHp6uSm4jhnzOZq9SDY=; b=GwtDeCqzDeMX6LGZEujLrMDUg/IF2a0XLU/W4HgYqKcq6NDCY3ZidyfKYKrVtOTclp HZ0YIqpX52mDB9/EbGq9A8S+OdvmAyuS2q2MAa89hLAEcW+rppH6iF8idSv35YjDQ5y7 bnUhSSWH5hAz2vT3gTG6+CN2sIxMELvb7TaIFpRsKU53pSgT9hMyovw6uJmvaLDC2KNy BkUFFlD+S01V2TWILxwKsZqlx8I9v3i/AAGFTVIvOXlJ2om34Zvg+EVzhEX2otNZa0D2 KGmLsrX72Vdn/fOADTFgc6pn3g6RHFnya/0ThS19dU0xsFFdDinqbpz/p/xaY7wIZPJW XXaA== Received: by 10.50.203.39 with SMTP id kn7mr15729138igc.53.1337858418103; Thu, 24 May 2012 04:20:18 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.35.72 with SMTP id o8csp31758ibd; Thu, 24 May 2012 04:20:16 -0700 (PDT) Received: by 10.216.136.155 with SMTP id w27mr15423205wei.43.1337858416023; Thu, 24 May 2012 04:20:16 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id eo3si12293388wid.20.2012.05.24.04.20.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 May 2012 04:20:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SXW5X-0000yM-Fj for ; Thu, 24 May 2012 11:20:15 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 6CA12E013D for ; Thu, 24 May 2012 11:20:15 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: glmark2 X-Launchpad-Branch: ~glmark2-dev/glmark2/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 218 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Thu, 24 May 2012 11:20:15 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15288"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: f1ffc20adc9a9e36effeecbcac7651dbf38663ec X-Gm-Message-State: ALoCoQlM2ZJTeP2vRGEukhn8/HteL1k+1WmatI4YzX8dq8AlSVu4vY5HgWG1km/JyoqO0o0PeM/E ------------------------------------------------------------ revno: 218 committer: Alexandros Frantzis 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 === 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 */