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.
Problem: Upon closing a schema file opened in the editor NPE is thrown. Doesn't happen for other file types only XSDs. Systerm: Product Version: NetBeans IDE Dev (Build 200803302302) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb) Steps: Just create a new schema, make sure it is opened in the editor. Now close it and exception is thrown.
Created attachment 59506 [details] exception report
To reproduce, must be in schema view, does not happen when in DV or source view.
Sounds like there has been some recent changes elsewhere in the platform that causes this regression because this was not a problem earlier.
Yes, it must be due to some very recent changes.
Just curious, was it an issue in last night's build?
I'm not sure why componentDeactivated() gets called after componentClosed(). In any case, please try the new jar; copy it to xml2/modules in a trunk build and verify.
Created attachment 59508 [details] org-netbeans-modules-xml-schema.jar
The patch works for Vista, I will try Mac as well. Do you see any chance of other issues arising from this patch? Product Version: NetBeans IDE Dev (Build 200804011203) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
No, there should not be any other implications.
Fix integrated: http://hg.netbeans.org/main?cmd=changeset;node=a150885c0acf.
Patch works on linux so I say go for it. It needs to be in the 6.1clone branch as well. I went back to see when this behavior began and can say that in the long period last week where we only had one build it was fine (build 200803251204) the few builds since then have the problem. I know it's moot now just FYI.
Fix Verified Product Version: NetBeans IDE Dev (Build 200804021202) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
*** Issue 131865 has been marked as a duplicate of this issue. ***
*** Issue 131559 has been marked as a duplicate of this issue. ***
Still not in 6.1 branch as of build 200804090901
Verified for 6.1 RC1 on WinXP