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.

inside custom component

Java Development

Reply
Developer
jh3ang
Posts: 16
Registered: ‎06-17-2009
My Device: Not Specified

NULL Exception at Invoke class method..help!!

How are you ? Please give me your speical advice, I'm dying to know what causes the following code to generate NULL exception.

 

Invoke.invokeApplication(Invoke.APP_TYPE_ADDRESSBOOK,new AddressBookArguments(AddressBookArguments.ARG_NEW));

 

Interestingly, the above code works great on JDE 4.5 or 5.0 simulator, but only on 4.7 version of Blackberry it generates NULL exception.

I have no idea @.@..

Please help me !

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: NULL Exception at Invoke class method..help!!

Is this same on real device?

 

Have you tried with other constructor of AddressBookAruments?


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
jh3ang
Posts: 16
Registered: ‎06-17-2009
My Device: Not Specified

Re: NULL Exception at Invoke class method..help!!

The same NULL exception happens on JDE 4.7 simulator with other constructors..

I haven't tried this on real device yet, 'cause I do not have 4.7 version :smileysad:

 

 

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: NULL Exception at Invoke class method..help!!

Similar Discussion and continued here.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=56087


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
jh3ang
Posts: 16
Registered: ‎06-17-2009
My Device: Not Specified

Re: NULL Exception at Invoke class method..help!!

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: NULL Exception at Invoke class method..help!!

You can mark this as solved.

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.