Bug 26050

Summary: Unnamed projects cause NPE in Ant View
Product: [Eclipse Project] Platform Reporter: Jared Burns <jared_burns>
Component: AntAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: ui
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Jared Burns CLA 2002-11-12 11:38:37 EST
Build 20021105

The "name" attribute on a project is optional, but the ant view treats it as
though it's required. The view passes project.getName() into the ProjectNode
constructor without checking for null and that "string" is then returned by
the label provider.

AntViewContentProvider.parseAntBuildFile(...) should check if the project's
name is null. If it is, it should pass "(unnamed)" into the contructor.
Comment 1 Jared Burns CLA 2002-11-12 11:39:00 EST
Fixed.
Comment 2 Jared Burns CLA 2002-11-12 11:39:12 EST
Please verify.
Comment 3 Darin Wright CLA 2002-11-12 12:16:06 EST
Verified code.