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 18705 - NPE from ModeImpl.release after manual changing of Windows/
Summary: NPE from ModeImpl.release after manual changing of Windows/
Status: CLOSED DUPLICATE of bug 20516
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-16 23:04 UTC by Jesse Glick
Modified: 2008-12-23 09:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (618 bytes, text/plain)
2001-12-16 23:04 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-12-16 23:04:26 UTC
[r33 dec 12] I had manually cleaned out my system/Windows/ directory
(deleting a bunch of useless stuff) with NetBeans not running (to try
to prevent some mysterious other exceptions that started appearing
whenever I shut down). Do not recall exactly what I changed, but
mostly involved deleting some useless modes for things that were not
visible anyway. After starting NetBeans again and running it and
shutting down, got this NPE. Probably "user error" for deleting things
manually, but at least the layer code could be a bit more robust and
report what exactly was missing or went wrong so it might be
corrected.
Comment 1 Jesse Glick 2001-12-16 23:04:56 UTC
Created attachment 3854 [details]
Stack trace
Comment 2 David Simonek 2002-01-09 10:26:41 UTC
Jiri, please take care of this one :-)
Comment 3 Jan Chalupa 2002-01-11 14:04:21 UTC
Target milestone -> 3.4
Comment 4 Jan Chalupa 2002-01-11 14:08:19 UTC
Target milestone -> 3.4
Comment 5 Jan Chalupa 2002-01-11 14:09:14 UTC
Target milestone -> 3.4
Comment 6 Jan Chalupa 2002-01-11 14:11:51 UTC
Target milestone -> 3.4
Comment 7 Jiri Rechtacek 2002-01-15 11:15:43 UTC
Hi Jesse, could you add some steps which you had done before you saw
the attached exceptions? I tried some ways I removed any folders or
any definitions files then I saw the configuration else then I
expected but I didn't see any exceptions.
What I did:
1. Remove editor folder ... it looks ok, editor isn't there
2. Remove editor.wsmode but folder not ... it looks ok
3. Remove some files (the selected file too) from the editor folder
... the files are there even though
4. Remove folder of a workspace ... it looks ok, a definition is read
from the relevant module
Comment 8 Jesse Glick 2002-01-15 13:44:46 UTC
If I knew what the steps to reproduce were, I would attach them. The
bug report is more asking for the window system to throw a useful
error indicating what is actually wrong. An NPE is not helpful in
correcting the problem. E.g.

java.lang.IllegalStateException: workspace folder Foo/ has no matching
.wswksp file
        at SuchAndSuch.java:181
        ....
Comment 9 Peter Zavadsky 2002-05-23 15:25:21 UTC

*** This issue has been marked as a duplicate of 20516 ***
Comment 10 Quality Engineering 2003-07-01 15:58:52 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 11 Quality Engineering 2003-07-01 16:38:19 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.