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.
NPE is thrown when you click Revert button and revisions are not yet resolved. To reproduce: - open a file versioned in Mercurial - make a local change and save file - call "Mercurial|Revert Modifications" and immediatelly click Revert button. The exception is thrown probably because combo box with revisions is not yet populated. Mercurial Pluging: 1.4.3.42.1 Mercurial Runtime: 0.9.5 Product Version: NetBeans IDE Dev (Build 20080109120642) 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) Userdir: D:\Development\builds\nbUserdir-Hg
Can't reproduce - can you attach a stack trace.
Created attachment 55159 [details] Proposed patch
Checked to see where this could be arising and have added check for null revision string. The revert will still work but it will just default to the following action: With no revision specified, revert the named files or directories to the contents they had in the parent of the working directory.
IDE:------------------------------------------------- IDE: [16/01/08 17:09] Committing started Checking in RevertModificationsPanel.java; /shared/data/ccvs/repository/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/update/RevertModificationsPanel.java,v <-- RevertModificationsPanel.java new revision: 1.8; previous revision: 1.7 done IDE: [16/01/08 17:09] Committing finished IDE: [16/01/08 17:09] Diffing finished
Verified.