You need to log in before you can comment on or make changes to this bug.
NullPointerException is thrown when you call Show History command. To reproduce: - hg clone http://hg.netbeans.org/main - open main/openide.util - open org.openide.LifecycleManager.java - call 'Mercurial|Show History' but it fails with NPE and it the output window is printed history but project name is null: INFO History for file(s): [D:\Development\hg\main\openide.util\src\org\openide\LifecycleManager.java] INFO Project Name: null Mercurial Pluging: 1.4.3.42.1 Mercurial Runtime: 0.9.5 Product Version: NetBeans IDE Dev (Build 20080107122025) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
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 an attachment (id=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.