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
New Contributor
Posts: 5
Registered: ‎09-02-2013
My Device: torch 8910
My Carrier: tigo

NullPointerException when cable is plugged in the computer

Hi,

 

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

BlackBerry Java Plug-in
Version:  2.0.0.201207181003
BlackBerry Java SDK
Version:  7.1.0.10

 

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

Developer
Posts: 16,992
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