Click here to Skip to main content
15,791,739 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to solve the null pointer exception in synthesizer.allocate()
Richard MacCutchan 24-Jul-11 3:51am    
Show your code so we can at least try to figure out which of your pointers has not been initialised. Or perhaps you could look at the diagnostic messages and debug output to find it.

1 solution

I'm making something of a guess here, but according to the documentation[^], the Central.createSynthesizer() returns null if no synthesizer of the required type exists. I assume you did not bother to check the return value before trying to use the object.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900