I used jogl 1.1 until now for our application without any error. But since I have updated my code to adapt jogl 2 it gives some unexpected random NullPointerException. Sometimes it works fine sometime it doesn't. I have tried to debug but found no error. and it happens only with my application. I have tried the jogl examples but those works fine. One difference is I use GLUtessellator and the examples doesn't. And ofcourse the error occurs at beginData(int type, Object data) in GLUtessellatorCallback. I guess that it might be a problem with the mismatch of variable 'type'. Since the error occurs randomly, I am not sure if exactly this is the problem but I guess once i noticed the value of 'type' was not as expected and that caused the error.
Thanx in advance.
Please add a unit test to reproduce the problem you claim to experience, thank you.
If possible, pls use on of the existing unit test from the JOGL repository close to your goals,
copy and modify it.
You may deliver it as a git patch or pull request - or, attach it to this bug report.
bug report rejected, due to lack of requested unit test / code snippet.
if you still experience this bug, pls provide a small example code and attach it here,
while you reopen this bug.
you also should add more information, see wiki/FAQ/bugreport.