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 2B54310476 for ; Tue, 3 Dec 2013 15:34:57 +0000 (UTC) Received: (qmail 75739 invoked by uid 500); 3 Dec 2013 15:34:48 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 75708 invoked by uid 500); 3 Dec 2013 15:34:44 -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 75697 invoked by uid 99); 3 Dec 2013 15:34:43 -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 15:34:43 +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.182 as permitted sender) Received: from [209.85.220.182] (HELO mail-vc0-f182.google.com) (209.85.220.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 15:34:32 +0000 Received: by mail-vc0-f182.google.com with SMTP id lc6so10073841vcb.13 for ; Tue, 03 Dec 2013 07:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1e+ww34VYQbde7Wj2YUbdUCggSie2+r1WhjJi3SPURU=; b=XRMZUB+OnaSSVaH0khBkCT2BtKSzozKTFgByA3B65+e39i+IDB3KicPB/rkBQNBKH6 Imu7G3VsUiMpDeNHK4ud3r6HVFu+vkhzLIH6bnWjtxCtZvAcJLdnBoCOYiXvKWSf4AJh 4BIXtitDjhATA5sFzRlJ0r6ShzbneohTgpuiDx56jDGmWdPU1j7I1NIzme4cKcUSxEI1 gBH1qhR96viohrFjJJdzBmDZrp8/xepxX20skTXgFFNqhqXDXf3LoedgnJ+ipzdac/k9 Js7tSIf/vrJvuMnPQsYEvrQ1ivoLEOls7BDZJGP8tJswTj+CZEv/nvTb7q3OlNoxMcOH EQQg== MIME-Version: 1.0 X-Received: by 10.52.106.107 with SMTP id gt11mr28760788vdb.7.1386084851056; Tue, 03 Dec 2013 07:34:11 -0800 (PST) Received: by 10.220.171.200 with HTTP; Tue, 3 Dec 2013 07:34:10 -0800 (PST) Date: Tue, 3 Dec 2013 16:34:10 +0100 Message-ID: Subject: PluginEntry.java crash in getClassByName From: Axel Nennker To: dev@cordova.apache.org Content-Type: multipart/mixed; boundary=001a1133ccf62d6f6404eca3071d X-Virus-Checked: Checked by ClamAV on apache.org --001a1133ccf62d6f6404eca3071d Content-Type: multipart/alternative; boundary=001a1133ccf62d6f5f04eca3071b --001a1133ccf62d6f5f04eca3071b Content-Type: text/plain; charset=ISO-8859-1 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 --001a1133ccf62d6f5f04eca3071b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I don't know= why or since when but getClassByName is called with an argument of "&= quot; (not null).
The method getClassByName checks for null but no= t for "" and so it crashes.
This happens for the service http://api.phonegap.com/1.0/device

I am using cordo= va-3.1.0-0.2.0
A screenshot of the debugging window is attach= ed.

A simple fix seems to be to never set this.pluginClass in Pl= uginEntry.java to "" but to null. PluginManager.java contains the= assignment: pluginClass =3D ""

-Axel
--001a1133ccf62d6f5f04eca3071b-- --001a1133ccf62d6f6404eca3071d--