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.
Summary: | Show History throws NPE | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | Mercurial | Assignee: | issues@versioncontrol <issues> |
Status: | VERIFIED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Proposed patch |
Description
Jiri Skrivanek
2008-01-08 13:58:23 UTC
This works for me on Solaris. I get a project name of "Utilities API". We should avoid the NPE if project name is null. Can't reproduce this on Windows XP with plugin from CVS Head. Added some additional checking to avoid NPE in the getProjectName() code. INFO History for file(s): [C:\main\openide.util\src\org\openide\LifecycleManager.java] INFO Project Name: Utilities API If you can reproduce it, please reopen and attach the stack trace for the NPE. Created attachment 54984 [details]
Proposed patch
IDE:------------------------------------------------- IDE: [11/01/08 23:57] Committing started Checking in HgProjectUtils.java; /cvs/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/HgProjectUtils.java,v <-- HgProjectUtils.java new revision: 1.10; previous revision: 1.9 done IDE: [11/01/08 23:57] Committing finished Verified. It works for me with latest plugin. |