Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2260] Parameter in Ti.Contacts.showContacts not optinal

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2012-12-11T17:46:03.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsDocumentation
Labelsandroid, contacts, picker
ReporterHans Joachim
AssigneeMauro Parra-Miranda
Created2012-12-11T15:34:13.000+0000
Updated2016-03-08T07:41:16.000+0000

Description

When calling Ti.Contacts.showContacts(), I'm getting a NullPointerException. Ti.Contacts.showContacts({selectedPerson : function(...) {...}}) works fine, so the parameter doesn't seem to be optional as written in the docs.

Comments

  1. Daniel Sefton 2012-12-11

    Hi, please could you provide a reproducible test case? Thanks.
  2. Hans Joachim 2012-12-12

    Ti.Contacts.showContacts(); [WARN][System.err( 361)] java.lang.NullPointerException [WARN][System.err( 361)] at ti.modules.titanium.contacts.ContactsModule.showContacts(ContactsModule.java:161) [WARN][System.err( 361)] at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) [WARN][System.err( 361)] at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60) [WARN][System.err( 361)] at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:636) [WARN][System.err( 361)] at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:829) [WARN][System.err( 361)] at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:307) [WARN][System.err( 361)] at android.os.Handler.dispatchMessage(Handler.java:95) [WARN][System.err( 361)] at android.os.Looper.loop(Looper.java:123) [WARN][System.err( 361)] at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109) To.Contacts.showContacts({}); works fine, so the parameter itself isn't optional, but its properties.
  3. Mauro Parra-Miranda 2013-11-22

    Working fine in Ti Mobile SDK 3.1.3

JSON Source