Bug 635 - Unexpected random NullPointerException
Summary: Unexpected random NullPointerException
Status: RESOLVED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: windows (show other bugs)
Version: 2
Hardware: pc_x86_64 windows
: --- major
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2012-11-06 10:03 CET by Nazmul Alam
Modified: 2012-11-21 18:54 CET (History)
0 users

See Also:
Type: ---
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nazmul Alam 2012-11-06 10:03:34 CET
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.
Nazmul
Comment 1 Sven Gothel 2012-11-09 02:05:10 CET
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.
Comment 2 Sven Gothel 2012-11-21 18:54:28 CET
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.