Hi All

we have problem while playing sound with Nokia UI API

Below is the code

InputStream tune;
byte buffer[];
Sound sound;
tune = this.getClass().getResourceAsStream("/test.WAV");
buffer = new byte[45056]; // 45056 is the file size
tune.read(buffer, 0, buffer.length);
sound = new Sound(buffer, Sound.FORMAT_WAV);
sound.init(buffer, Sound.FORMAT_WAV);
sound.play(1);

when we test with Nokia Developer's Suite fot the Java 2 Platform,micro edition emulator we are getting NullPointerException,

Need Help.

Thanks in Advance
B.Rajesh