Bug 26050 - Unnamed projects cause NPE in Ant View
Summary: Unnamed projects cause NPE in Ant View
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-11-12 11:38 EST by Jared Burns CLA
Modified: 2002-11-12 12:16 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.