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 98642

Summary: GuardedException when usin editable diff
Product: utilities Reporter: novakm <novakm>
Component: DiffAssignee: diff-issues@utilities <diff-issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception Stacktrace

Description novakm 2007-03-22 13:56:12 UTC
Assuming you are designing some jFrame.
1) Add a new component and save it.
2) Invoke CVS | Diff... from the <form>.java context menu.
3) Try to remove new lines in local copy using the red cross
-> following exception is thrown:
org.netbeans.editor.GuardedException: Attempt to remove from guarded block at
position 776.
	at org.netbeans.editor.GuardedDocument.preRemoveCheck(GuardedDocument.java:192)
	at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:741)
	at
org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.rollback(EditableDiffView.java:366)
...

-----
NetBeans IDE Dev (Build 200703211900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows Vista version 6.0 running on x86
en_GB (nb); Cp1252
Comment 1 novakm 2007-03-22 13:56:41 UTC
Created attachment 39812 [details]
Exception Stacktrace
Comment 2 Maros Sandor 2007-03-27 15:00:30 UTC

*** This issue has been marked as a duplicate of 99098 ***
Comment 3 novakm 2007-03-28 08:17:49 UTC
Well, verified duplicate. Except for the fact I filed it 5 days earlier :)