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: 2
Registered: ‎03-12-2010
My Device: Curve
My Carrier: Reliance

Player Class throwing null pointer exception

Hi All,

 

I have created a player which plays mp3 and wav format songs it runs well in bold and curve handsets but when I tried the code in tour simulator it throwing a null pointer exception after player.start() line

BlackBerry Development Advisor
Posts: 15,811
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Player Class throwing null pointer exception

Where are the files located?  Are they being read from the microSD card, a web server, custom handler, etc...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
New Contributor
Posts: 2
Registered: ‎03-12-2010
My Device: Curve
My Carrier: Reliance

Re: Player Class throwing null pointer exception

[ Edited ]

Thanks Mark for replying the files are located in SDcard and my code is correct afaik because its running well on simulator of bold and curve and on real devices but for 9630 tour simulator it throws a null pointer exception if you say I can post my code here for a look

 

Regards

Saurabh

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: Player Class throwing null pointer exception

Please post the full stack trace of the exception.

BlackBerry Development Advisor
Posts: 15,811
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Player Class throwing null pointer exception

I have been able to reproduce this using the version 4.7.1 BlackBerry Tour simulator.  This has been fixed in version 5.0.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Highlighted
New Contributor
Posts: 9
Registered: ‎08-30-2012
My Device: BlackBerry 5.0
My Carrier: Airtel India

Re: Player Class throwing null pointer exception

Hi All,

 

I am also facing problem in playing online video in My BB5 device. Is there any way to directly play video using 

player class.