NPE in getAllContacts(false)

16 views
Skip to first unread message

Dmitry Trunikov

unread,
Apr 7, 2014, 7:36:22 AM4/7/14
to codenameone...@googlegroups.com
Hi ALL :)

My application has following call:

Display.getInstance().getAllContacts(false);

During invocation of this statement, my J2ME phone displays dialog with a request to an user to grant permission to the application to read contacts.
In case when user rejects the request the application code catches NullPointerException. I think this is a bug in Codename framework that should be fixed (or at least documented).

Regards,
Dmitry

Shai Almog

unread,
Apr 7, 2014, 1:16:43 PM4/7/14
to codenameone...@googlegroups.com
Hi,
thanks. We'll fix that to return null.
Reply all
Reply to author
Forward
0 new messages