Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
wholebbONE
Posts: 13
Registered: ‎08-04-2008

NullPointerException when blackberrycontactlist.lookup

When invoke blackberrycontactlist.lookup, NullPointerException will be throwed. the details :

Name: NullPointerException
GUID: 9c3cd62e3320b498
Time: Apr 07, 2008 07:48:47
No detail message
net_rim_bb_apps_framework-3
DefaultSendThread$SendThreadCollector
run
0x154E
 
Any suggestions?
Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Carrier: ***

Re: NullPointerException when blackberrycontactlist.lookup

According to this article: http://www.blackberry.com/btsc/KB04469

 

there is a broken piece of data in device memory/contacts.

 

Make full backup via BB Desktop Manager.

 

After that wipe the device memory via

 

Options - Security Options - General Settings

 

open menu and hit "Wipe handheld"

 

Add new contacts manually and try to invoke your code again.

 

Later - restore backed up information to the device.

Please use plain text.
New Developer
wholebbONE
Posts: 13
Registered: ‎08-04-2008

Re: NullPointerException when blackberrycontactlist.lookup

Hi,tbilisoft,

lookup method will lookup the contacts from remote BES , not local address book. the article can't explain it?

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Carrier: ***

Re: NullPointerException when blackberrycontactlist.lookup

Your original post did not mention that.

 

For now I have no idea why it throws an exception when it is querying BES server.

Please use plain text.
New Developer
wholebbONE
Posts: 13
Registered: ‎08-04-2008

Re: NullPointerException when blackberrycontactlist.lookup

Hi, I found the possible reason:

Because it will look up from bes, the related service book item should be pushed to devices. or the bes server should be configured for the GAL lookup

 

Please use plain text.