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 126686

Summary: IllegalArgumentException: Parameter file was not normalized. Was C:\DOCUME~1\peter\LOCALS~1\Temp\NewClass.java32282.tmp instead of C:\Documents and Settings\peter\Local Settings\Temp\NewClass.java3228
Product: versioncontrol Reporter: Peter Pis <ppis>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=24678
Issue Type: DEFECT Exception Reporter: 24678
Attachments: stacktrace

Description Peter Pis 2008-02-05 09:53:43 UTC
Build: NetBeans IDE Dev (Build 080204)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Windows XP, 5.1, x86

User Comments: 
1. Open project under Hg control.
2. Select project's node and invoke "Mercurial | Show History" action.
3. From "Mercurial History" window push "Search" button.
4. Select some record and invoke "View" popup menu action.

IAE is thrown.
Comment 1 Peter Pis 2008-02-05 09:53:48 UTC
Created attachment 56049 [details]
stacktrace
Comment 2 Peter Pis 2008-02-05 09:55:29 UTC
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at org.netbeans.modules.mercurial.util.HgCommand.getPreviousName(HgCommand.java:797)
	at org.netbeans.modules.mercurial.util.HgCommand.doCat(HgCommand.java:1172)
	at org.netbeans.modules.mercurial.util.HgCommand.doCat(HgCommand.java:1139)
	at org.netbeans.modules.mercurial.VersionsCache.getFileRevision(VersionsCache.java:96)
	at org.netbeans.modules.mercurial.ui.log.SummaryView.view(SummaryView.java:478)
	at org.netbeans.modules.mercurial.ui.log.SummaryView.access$500(SummaryView.java:82)
	at org.netbeans.modules.mercurial.ui.log.SummaryView$4$1.run(SummaryView.java:345)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 3 John Rice 2008-02-05 16:47:37 UTC
Mercurial Push
--------------
INFO Changesets to push:

changeset:   65925:441cd2202927
user:        jrice@netbeans.org
date:        Tue Feb 05 16:36:28 2008 +0000
files:       mercurial/src/org/netbeans/modules/mercurial/ui/log/SummaryView.java
description:
#126671: NPE on Search History View on Windows - needed to normailize file
changeset:   65940:bad3006a4ac8
parent:      65925:441cd2202927
parent:      65939:d1724d166f6a
user:        jrice@netbeans.org
date:        Tue Feb 05 16:40:01 2008 +0000
description:
Comment 4 Peter Pis 2008-02-12 09:14:39 UTC
Verified.