On Thu, Oct 13, 2016 at 3:18 PM, Jugraj Singh <[email protected]> wrote:
<snip>
>
> 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.
>
The exception i getting is null pointer value == null but i initialise
the temp variable here.

-- 

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 [email protected].
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/CACSuXDrbeOGQV7-upjU_i4wVHsMd7PhKu1DfFUSF5-CJYCt%2BnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to