Bug 6016 - NPE during resource delete in package viewer
Summary: NPE during resource delete in package viewer
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-16 11:59 EST by Knut Radloff CLA
Modified: 2001-12-04 06:24 EST (History)
0 users

See Also:


Attachments
.log file with walkback (12.15 KB, text/plain)
2001-11-16 12:00 EST, Knut Radloff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2001-11-16 11:59:35 EST
build 20011114

I had org.eclipse.jdt.ui in my workspace, selected all files and folders in it 
and deleted them.
I got a NullPointerException in 
org.eclipse.jdt.internal.core.refactoring.changes.DeleteFromClasspathChange.toBe
Deleted
All the external JAR references were still in the project after the exception 
occured. When I try to delete those I get the same walkback.
I'll upload my workspace to walleye.
Comment 1 Knut Radloff CLA 2001-11-16 12:00:13 EST
Created attachment 123 [details]
.log file with walkback
Comment 2 Knut Radloff CLA 2001-11-16 14:07:20 EST
The workspace is in INCOMING/forKnut/6016.zip
Comment 3 Knut Radloff CLA 2001-11-16 14:15:09 EST
I think the problem was that I was trying to *delete* the external JAR 
references instead of removing them in the project properties.
The question is whether this is a legal operation. I think it should be and it 
should be the same as removing the JARs in the project properties. Of course I 
shouldn't get an exception in either case.
Comment 4 Adam Kiezun CLA 2001-12-04 06:24:32 EST
the problem came from the call to JavaCore.getResolvedClasspathEntry
which returns null sometimes.
code has to take that possibility into account.
it does now.