[AC-2260] Parameter in Ti.Contacts.showContacts not optinal
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-12-11T17:46:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Documentation |
Labels | android, contacts, picker |
Reporter | Hans Joachim |
Assignee | Mauro Parra-Miranda |
Created | 2012-12-11T15:34:13.000+0000 |
Updated | 2016-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.
Hi, please could you provide a reproducible test case? Thanks.
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.
Working fine in Ti Mobile SDK 3.1.3