BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-20-2009, 02:08 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 9000
Carrier: Airtel
Posts: 81
Post Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation i am getting context object null on device 8800

Please Login to Remove!

in my application i am adding a custom menu on sms composer's context menu.
it's working fine on simulator 8330 but when i am testing on real device 8800 i am getting null pointer exception for context object for this code.
public Object run(Object context) {
TextMessage c= (TextMessage)context;
if ( c != null )
//do something
else
throw new IllegalStateException("Context is null, expected a textmessage instance");
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Allen Bradley 1747-M13 EEPROM Memory Module Series A - New No Box
$55.0
Allen Bradley 1747-M13 EEPROM Memory Module Series A - New No Box  pictureTnm5000 Adapter Flash From Isp Tv Lcd Mcu Eeprom Vga Hdmi
$100.0
Tnm5000 Adapter Flash From Isp Tv Lcd Mcu Eeprom Vga Hdmi picture4× AT24C256 I2C Interface 256k Bits EEPROM Memory Module 8P Chip Holder
$4.95
4× AT24C256 I2C Interface 256k Bits EEPROM Memory Module 8P Chip Holder pictureSST 29EE512-90-4C-NH PLCC FLASH EEPROM BRAND NEW OLD STOCK
$2.0
SST 29EE512-90-4C-NH PLCC FLASH EEPROM BRAND NEW OLD STOCK pictureLot Of 100 PIC16CR83-04I/S0 EEPROM 8-Bit Microcontrollers. New
$90.0
Lot Of 100 PIC16CR83-04I/S0 EEPROM 8-Bit Microcontrollers. New picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.