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 36020 - NPE when deleting package
Summary: NPE when deleting package
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Classpath (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2003-09-10 16:11 UTC by Jaromir Uhrik
Modified: 2003-12-11 14:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java.lang.NullPointerException attached (1.57 KB, text/plain)
2003-09-10 16:12 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2003-09-10 16:11:16 UTC
[build #200309100000; j2sdk1.4.2]
Sometimes when I delete the package (popup menu 
in explorer - select item Delete), the following 
exception appears...
Comment 1 Jaromir Uhrik 2003-09-10 16:12:07 UTC
Created attachment 11583 [details]
java.lang.NullPointerException attached
Comment 2 Jaromir Uhrik 2003-09-10 16:12:51 UTC
The PROJECTS keyword added.
Comment 3 Jaromir Uhrik 2003-09-10 16:14:06 UTC
It is RANDOM:-)
Comment 4 Tomas Zezula 2003-09-18 19:27:19 UTC
Parser is asking the ClassPath if it contains the removed package,
which is obviously wrong.
The ClassPath.contains (FileObject fo) method gets null as it
parameter, the obvious and quite feasible solution (the ClassPath is
API and should do precondition checking to be more stable)
I will fix this part of issue, but I need more time to find out what
happend in the JavaParser
Comment 5 Tomas Zezula 2003-09-22 17:27:03 UTC
The ParseRequest does not check the case when the ProjectMember is
invalid or broken.
1) Fixed by the check in the ParseRequest.
2) ClassPath maked more reliable, it verifies the inpu parameters and
throws IllegalArgumentException in the case of null reference.
Comment 6 Jan Becicka 2003-11-25 14:05:00 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as VERIFIED --->
Comment 7 Jan Becicka 2003-11-25 14:14:08 UTC
---> CLOSED