This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
java.lang.NullPointerException when create JUnit test for MIDPCanvas. See attachments
Created attachment 32007 [details] exception
I cannot reproduce this issue. Neither can Lukas. It could be caused by 80712.
I was able to reproduce it. It can be reproduce when the the MDR repository is rebuilding. I'm attaching longer stacktrace. Is it possible to block the test generation for a while or is it really manged by JUnit module?
I believe it is possible to disable actions during classpath scanning. Reopening.
I do not own the action so I cannot disable it, JUnit does. They should check if any scan processes are in progress and turn the action on/off accordingly.
please verify if the problem happen when using JUnit and J2SE project.
The action should be disabled because when user clicks it, he expects results. By waiting for the MDR the generation could be postponed for a very long time (especially during startup cycles). The user will still be able to do other stuff in the IDE but then new tests will "magically" appear a minute later, not the best approach.
Created attachment 33364 [details] NPE stacktrace
build 0829 I got a little bit different stacktrace. It contains a javacore exception too. Maybe it can help. There wasn't any mdr scan running
Created attachment 33922 [details] I have a some problem. I attached my log file.
5.5 is out. It has no sense to have some issues planned to be fixed in finished release. Therefore I'm setting the Target Milestone back to TBD for futher evaluation
this problem should not occur with the new java source model infrastructure, therefore i will close the issue. should it reappear in 6.0, we can open a new issue.
verified 20070426 ok
closing old issues