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.
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows Vista, 6.0, x86 User Comments: johnsonlau: Search all available history log on a project managed by Mercurial johnsonlau: Search all available history log on a project managed by Mercurial johnsonlau: Search all available history log on a project managed by Mercurial Stacktrace: java.lang.NullPointerException at org.netbeans.modules.mercurial.ui.log.HgLogMessage.<init>(HgLogMessage.java:122) at org.netbeans.modules.mercurial.util.HgCommand.processLogMessages(HgCommand.java:879) at org.netbeans.modules.mercurial.util.HgCommand.getLogMessages(HgCommand.java:975) at org.netbeans.modules.mercurial.util.HgCommand.getLogMessages(HgCommand.java:930) at org.netbeans.modules.mercurial.ui.log.SearchExecutor.search(SearchExecutor.java:149) at org.netbeans.modules.mercurial.ui.log.SearchExecutor.access$100(SearchExecutor.java:60)
Created attachment 74808 [details] stacktrace
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows Vista, 6.0, x86 User Comments: Search all available history log on a project managed by Mercurial Stacktrace: java.lang.NullPointerException at org.netbeans.modules.mercurial.ui.log.HgLogMessage.<init>(HgLogMessage.java:122) at org.netbeans.modules.mercurial.util.HgCommand.processLogMessages(HgCommand.java:879) at org.netbeans.modules.mercurial.util.HgCommand.getLogMessages(HgCommand.java:975) at org.netbeans.modules.mercurial.util.HgCommand.getLogMessages(HgCommand.java:930) at org.netbeans.modules.mercurial.ui.log.SearchExecutor.search(SearchExecutor.java:149) at org.netbeans.modules.mercurial.ui.log.SearchExecutor.access$100(SearchExecutor.java:60)
Created attachment 74809 [details] stacktrace
It appears that the issue only occurs when the locale Mercurial uses is different from system locale. When I set HGENCODING to UTF-8 to force Mercurial using UTF-8 charset, it appears. And I unset the system-wide variable, it disappears. On a Windows Vista platform. I guess it might meet some unpreditable characters and parse uncorrectly. Additionally, it seems that NetBeans uses system locale to parse Mercurial's output. It certainly will get a wrong output in a situation as above.
fix: http://hg.netbeans.org/cdev/rev/f40985d7eeea
Integrated into 'main-golden', will be available in build *201003240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f40985d7eeea User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #155147 - NullPointerException at org.netbeans.modules.mercurial.ui.log.HgLogMessage.<init> using utf encoding wherever possible
Had to revert the fix (see bug #187725). In order to get over this issue, you should start the IDE with -J-Dmercurial.encoding=UTF-8
Integrated into 'main-golden', will be available in build *201006230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ab3c08ed488a User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #187725 - I18N : regression : Japanese filename can not be used on Windows reverting fix for #155147, #177575. Using a default encoding and introducing a switch overriding it.