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.

Bug 78064 - Null pointer exception when generating unit tests
Summary: Null pointer exception when generating unit tests
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 13:29 UTC by bunajim
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bunajim 2006-06-16 13:29:33 UTC
Hi there,
   I just downloaded NB 5.5 and its my first time using the enterprise pack. 
Anyway I created a simple class with only a constructor using the uml pack. 
When i tried to generate the unit tests pressing CTRL+SHIFT+U, the Test class
got generated in the source, but nothing was generated in the class diagram and
I got a null pointer exception.

Here is the error log I got.
============================

java.lang.NullPointerException
	at
org.netbeans.modules.javacore.ExclusiveMutex.addBFeatureToInitQueue(ExclusiveMutex.java:470)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.CallableFeatureImpl.initChildren(CallableFeatureImpl.java:165)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.setElementInfo(SemiPersistentElement.java:146)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.initChildren(JavaClassImpl.java:723)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:140)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:186)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getInternalForm(SemiPersistentElement.java:849)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:515)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.cachePositions(ResourceImpl.java:485)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.cachePositions(ResourceImpl.java:491)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getFeaturePosition(ResourceImpl.java:473)
	at
org.netbeans.modules.javacore.jmiimpl.javamodel.FeatureImpl.getPosition(FeatureImpl.java:270)
	at org.netbeans.modules.javacore.JMManager.getElementPosition(JMManager.java:771)
	at org.netbeans.modules.javacore.JMManager.getElementPosition(JMManager.java:757)
	at
org.netbeans.modules.java.JavaEditor$JavaEditorComponent.findElement(JavaEditor.java:1348)
	at
org.netbeans.modules.java.JavaEditor$JavaEditorComponent.createNode(JavaEditor.java:1296)
	at
org.netbeans.modules.java.JavaEditor$JavaEditorComponent.access$900(JavaEditor.java:1216)
	at
org.netbeans.modules.java.JavaEditor$JavaEditorComponent$1$1.run(JavaEditor.java:1268)
	at org.openide.util.Mutex.readAccess(Mutex.java:221)
	at
org.netbeans.modules.java.JavaEditor$JavaEditorComponent$1.run(JavaEditor.java:1266)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 1 Trey Spiva 2006-06-16 15:58:40 UTC
Reassigned issue to the javacore.
Comment 2 Jan Becicka 2006-10-26 16:27:10 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 3 Quality Engineering 2007-09-20 10:35:22 UTC
Reorganization of java component