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 24241 - NPE on MouseEntered
Summary: NPE on MouseEntered
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Java3D (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Paul Byrne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-30 12:35 UTC by herkules
Modified: 2002-07-19 15:21 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 herkules 2002-05-30 12:35:29 UTC
JDK1.3, Java3D 1.3beta2


java.lang.NullPointerException
    at 
com.sun.j3d.demos.j3dedit.scenegrapheditor.J3dTreeFrame.tre
ePanelMouseEntered(Unknown Source)
    at 
com.sun.j3d.demos.j3dedit.scenegrapheditor.J3dTreeFrame.acc
ess$1400(Unknown Source)
    at 
com.sun.j3d.demos.j3dedit.scenegrapheditor.J3dTreeFrame$15.
mouseEntered(Unknown Source)
Comment 1 herkules 2002-05-30 12:44:06 UTC
gave wrong verson info:

JDK1.4, Java3D 1.3beta2
Comment 2 herkules 2002-05-31 12:38:34 UTC
Ah, this happens ALWAYS. Cannot move the mouse into the 
graph tree area of the editor at all. 

Comment 3 Paul Byrne 2002-05-31 21:51:32 UTC
I've just run the editor successfully on Windows XP......

More details required......

Does this happen when running the editor standalone or only
when using the editor in the Netbeans module ?

Comment 4 herkules 2002-06-03 15:07:45 UTC
Checked it out - happens ONLY in NB, standalone is fine 
(besides minor redraw issues)

Happens when entering the tree-graph panel with the mouse.

 
Comment 5 herkules 2002-06-03 15:21:53 UTC
maybe its an result of a different thing: 

When creating a new scene and importing a standard model, 
I receive a message: 
 
 "Error loading file p51_mustang.obj"

This also only happens in the NB-version.

OTOH, I created and saved a j3f with the standalone 
version and loaded it with NB - but the NPE persists.


Comment 6 Jan Becicka 2002-06-03 16:58:27 UTC
I'm looking at it. The problem is in J3dTreeFrame at line 375:
CutAction cutAction = (CutAction)ActionManager.getAction(
CutAction.class );

ActionManager.getAction returns null.  ActionManager is initialized in
J3dEdit.setupActions(), but the module does not use J3dEdit. It uses
Editor.

Paul, have you any idea, how can I initialize ActionManager without
instantiating J3dEdit. I prefer other solution than copy/paste :-)
Comment 7 Paul Byrne 2002-06-04 00:22:39 UTC
Fixed, but we need to link the java3d editor copy, paste cut and
delete actions with those of the IDE when running as a netbeans
module.
Comment 8 herkules 2002-06-04 12:06:33 UTC
confirmed. 
Some new version info for the new d'load would be great in 
order to be able to update the NB module.

I manually had to delete files from my netbeans directory 
and re-install the module again.