Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 688E1105F8 for ; Tue, 3 Dec 2013 22:09:46 +0000 (UTC) Received: (qmail 69059 invoked by uid 500); 3 Dec 2013 22:09:46 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 69035 invoked by uid 500); 3 Dec 2013 22:09:46 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 69027 invoked by uid 99); 3 Dec 2013 22:09:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 22:09:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ignisvulpis@gmail.com designates 209.85.220.181 as permitted sender) Received: from [209.85.220.181] (HELO mail-vc0-f181.google.com) (209.85.220.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 22:09:40 +0000 Received: by mail-vc0-f181.google.com with SMTP id ks9so10261487vcb.26 for ; Tue, 03 Dec 2013 14:09:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=QAiavdmr4cLIOLZl2jJ3+iU5wDidHAbSY6ol3kcdK1E=; b=fQ9gDha3hIqXgJhtvD0/6gDxePuUS2/Dg0b5FUpDgb6yun1ceQdCcEc5XaIK/bh+/S 8ri4CvbNOQhzVWyrQ+DqmF/vmkosyr9+r53p7fmimwgdv6TUjOR1Isy+60z7KhwRlSBs tMoLiqkDj0m36d+7lWlKerpYWQulAjDmVVaeh/tQ0byIuF54GBKFxb/qG/CsEtGWY0tw iJMOv5jkoDFwPZjpt9Vdguu972WtMtGQu0PJanjid4qD2rTepoK0B80s77P1irTMp8/S XAZX3DGDTO8jGbmIQaL0kZxr/W1+vwNQEu19K50DgwKvjPs5uQzgoC16kvetR7bQ+Hzb 71vg== MIME-Version: 1.0 X-Received: by 10.58.107.4 with SMTP id gy4mr27472veb.39.1386108559841; Tue, 03 Dec 2013 14:09:19 -0800 (PST) Received: by 10.220.171.200 with HTTP; Tue, 3 Dec 2013 14:09:19 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Dec 2013 23:09:19 +0100 Message-ID: Subject: Re: PluginEntry.java crash in getClassByName From: Axel Nennker To: dev@cordova.apache.org, bowserj@apache.org Content-Type: multipart/alternative; boundary=089e0122f348548ffd04eca88cf7 X-Virus-Checked: Checked by ClamAV on apache.org --089e0122f348548ffd04eca88cf7 Content-Type: text/plain; charset=ISO-8859-1 done: https://issues.apache.org/jira/browse/CB-5537 2013/12/3 Joe Bowser > Can you please create an issue so that this is tracked? > > On Tue, Dec 3, 2013 at 11:02 AM, wrote: > > Hi, > > > > I don't know why or since when but getClassByName is called with an > argument > > of "" (not null). > > > > The method getClassByName checks for null but not for "" and so it > crashes. > > > > This happens for the service http://api.phonegap.com/1.0/device > > > > I am using cordova-3.1.0-0.2.0 > > > > A screenshot of the debugging window is attached. > > > > A simple fix seems to be to never set this.pluginClass in > PluginEntry.java > > to "" but to null. PluginManager.java contains the assignment: > pluginClass = > > "" > > > > > > > > -Axel > > > > > --089e0122f348548ffd04eca88cf7--