On Thu, Oct 13, 2016 at 7:14 AM, Shai Almog <shai.al...@gmail.com> wrote:
> See this from your log:
>
> java.lang.NullPointerException: value == null
> 10-12 15:32:08.991: W/System.err(21384): at
> java.util.Hashtable.put(Hashtable.java:362)
> 10-12 15:32:08.991: W/System.err(21384): at
> userclasses.StateMachine.onMain_ButtonAction(StateMachine.java:75)
>
>
> Check out line 75...
>

This is the code around line 75
73 for (String phoneContact : phoneContacts) {
74 Contact contact = Display.getInstance().getContactById(phoneContact);
75 Hashtable<String, String> temp = new Hashtable<>();
76 temp.put("phone",contact.getPrimaryPhoneNumber());
77 temp.put("name",contact.getDisplayName());
78 con.add(temp);
79 }

I did not see anything wrong there.

-- 

Jugraj Singh

git :- https://github.com/jugrajsingh
blog :- ezecodes.wordpress.com

"If all you have is a hammer, everything looks like a nail"

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CACSuXDo6RQvS%3DA%3D7SG5jWoBUC_Wrf7Qa2XZsH6CZ_fUV-StHVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to