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 44962 - Better error description when project contains errors
Summary: Better error description when project contains errors
Status: CLOSED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-16 12:46 UTC by Martin Grebac
Modified: 2006-03-24 10:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2004-06-16 12:46:39 UTC
Today's daily build. Tried to open web/project.

java.lang.NullPointerException
org.netbeans.modules.apisupport.project.NbModuleProject.createEvaluator(NbModuleProject.java:195)
org.netbeans.modules.apisupport.project.NbModuleProject.<init>(NbModuleProject.java:77)
org.netbeans.modules.apisupport.project.NbModuleProjectType.createProject(NbModuleProjectType.java:41)
org.netbeans.modules.project.ant.AntBasedProjectFactorySingleton.loadProject(AntBasedProjectFactorySingleton.java:130)
org.netbeans.api.project.ProjectManager.createProject(ProjectManager.java:237)
org.netbeans.api.project.ProjectManager.access$400(ProjectManager.java:40)
org.netbeans.api.project.ProjectManager$2.run(ProjectManager.java:190)
Comment 1 Jesse Glick 2004-06-16 16:04:14 UTC
Why is this filed in the ant component??
Comment 2 Jesse Glick 2004-06-16 16:05:19 UTC
Probably you are using new sources but a slightly older build. The
format of project.xml files changed a bit and you need a build that
includes the changes.
Comment 3 Martin Grebac 2004-06-17 14:34:21 UTC
You're right - incompatible builds. But from my previous experience
with other bugs in prj definition, it's almost impossible to guess
which dependent project causes problems. It would be good to have at
least better error message. NPE is not a good source of information if
there's no project name.
Comment 4 Jesse Glick 2004-06-17 16:32:33 UTC
Right, I will have it throw an IOException with a proper message.
Comment 5 Jesse Glick 2004-06-17 19:05:31 UTC
committed     Up-To-Date  1.40       
apisupport/project/src/org/netbeans/modules/apisupport/project/NbModuleProject.java
Comment 6 Martin Grebac 2004-06-24 15:22:16 UTC
verified in 200406231800