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 131758 - NPE when close schema files
Summary: NPE when close schema files
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
: 131559 131865 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-01 18:39 UTC by tonybeckham
Modified: 2008-04-10 16:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception report (4.25 KB, text/plain)
2008-04-01 18:40 UTC, tonybeckham
Details
org-netbeans-modules-xml-schema.jar (441.12 KB, application/octet-stream)
2008-04-01 20:20 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-04-01 18:39:44 UTC
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.
Comment 1 tonybeckham 2008-04-01 18:40:11 UTC
Created attachment 59506 [details]
exception report
Comment 2 tonybeckham 2008-04-01 18:41:36 UTC
To reproduce, must be in schema view, does not happen when in DV or source view.
Comment 3 Samaresh Panda 2008-04-01 19:16:27 UTC
Sounds like there has been some recent changes elsewhere in the platform that causes this regression because this was
not a problem earlier.
Comment 4 Mikhail Matveev 2008-04-01 19:23:54 UTC
Yes, it must be due to some very recent changes.
Comment 5 Samaresh Panda 2008-04-01 19:52:47 UTC
Just curious, was it an issue in last night's build?
Comment 6 Samaresh Panda 2008-04-01 20:19:37 UTC
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.
Comment 7 Samaresh Panda 2008-04-01 20:20:51 UTC
Created attachment 59508 [details]
org-netbeans-modules-xml-schema.jar
Comment 8 tonybeckham 2008-04-01 21:41:07 UTC
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)
Comment 9 Samaresh Panda 2008-04-01 22:26:53 UTC
No, there should not be any other implications.
Comment 10 Samaresh Panda 2008-04-01 23:21:18 UTC
Fix integrated: http://hg.netbeans.org/main?cmd=changeset;node=a150885c0acf.
Comment 11 tonybeckham 2008-04-01 23:24:36 UTC
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.
Comment 12 tonybeckham 2008-04-02 19:17:49 UTC
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)
Comment 13 Samaresh Panda 2008-04-02 20:25:04 UTC
*** Issue 131865 has been marked as a duplicate of this issue. ***
Comment 14 Samaresh Panda 2008-04-04 15:31:22 UTC
*** Issue 131559 has been marked as a duplicate of this issue. ***
Comment 15 tonybeckham 2008-04-09 18:06:10 UTC
Still not in 6.1 branch as of build 200804090901
Comment 16 Mikhail Matveev 2008-04-10 16:16:45 UTC
Verified for 6.1 RC1 on WinXP