Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E58D18AF3 for ; Thu, 19 Nov 2015 06:56:12 +0000 (UTC) Received: (qmail 28388 invoked by uid 500); 19 Nov 2015 06:56:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 28142 invoked by uid 500); 19 Nov 2015 06:56:11 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 27815 invoked by uid 99); 19 Nov 2015 06:56:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2015 06:56:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 770BE2C1F74 for ; Thu, 19 Nov 2015 06:56:11 +0000 (UTC) Date: Thu, 19 Nov 2015 06:56:11 +0000 (UTC) From: "Vladimir Kotikov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-8517) App crash because of ContentResolver query returned null on lollipop device MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Kotikov updated CB-8517: --------------------------------- Labels: Android contacts lollipop triaged (was: android contacts lollipop triaged) > App crash because of ContentResolver query returned null on lollipop device > --------------------------------------------------------------------------- > > Key: CB-8517 > URL: https://issues.apache.org/jira/browse/CB-8517 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Contacts > Environment: Lollipop, MotoG > Reporter: Manoj Katari P > Labels: Android, contacts, lollipop, triaged > > ContentResolver.query() can return null in devices running with lollipop. > Its not handled in contacts plugin at ContactAccessorSdk5.java:186 for idCursor > --------------------------------------------------------------------------- > FATAL EXCEPTION: pool-1-thread-38 > E/AndroidRuntime(17921): Process: com.toshiba.uclient, PID: 17921 > E/AndroidRuntime(17921): java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.database.Cursor.moveToNext()' on a null object reference > E/AndroidRuntime(17921): at org.apache.cordova.contacts.ContactAccessorSdk5.search(ContactAccessorSdk5.java:186) > E/AndroidRuntime(17921): at org.apache.cordova.contacts.ContactManager$1.run(ContactManager.java:93) > E/AndroidRuntime(17921): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) > E/AndroidRuntime(17921): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) > E/AndroidRuntime(17921): at java.lang.Thread.run(Thread.java:818) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org