Bug 6016

Summary: NPE during resource delete in package viewer
Product: [Eclipse Project] JDT Reporter: Knut Radloff <knut_radloff>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Attachments:
Description Flags
.log file with walkback none

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.