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

New Contributor
Posts: 5
Registered: ‎09-02-2013
My Device: torch 8910
My Carrier: tigo

NullPointerException when cable is plugged in the computer



I am using the BB 9810 smartphone, 7.0 Bundle 1355 (v7.0.0.261, Platform

BlackBerry Java Plug-in
BlackBerry Java SDK


I am getting a NullPointerException while attempt to access my application but only when smartphone is connected to the computer using the USB cable. The application runs normally when cable is unplugged.


My application access (or creates) a SQLite database using rim database API, also uses crypto API and barcodelib API.

Are there any issues with running the app while the phone is connected to a computer, is the storage not available to the app?


Thanks for your help

Posts: 17,005
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: NullPointerException when cable is plugged in the computer

either the app or the PC can access the SD card, not both.
You have to check for availability in your code.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter