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 96770

Summary: NPE from ToggleBookmarkAction when closing file
Product: editor Reporter: Jiri Skrivanek <jskrivanek>
Component: -- Other --Assignee: issues@editor <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace.

Description Jiri Skrivanek 2007-02-28 12:35:35 UTC
NullPointerException is thrown when you close a file opened in editor. To reproduce:

- create a java project
- close Main.java file and the following exception is thrown:

java.lang.NullPointerException
	at 

org.netbeans.lib.editor.bookmarks.actions.ToggleBookmarkAction$BookmarkButtonModel.rebuild(ToggleBook

markAction.java:200)
	at 

org.netbeans.lib.editor.bookmarks.actions.ToggleBookmarkAction$BookmarkButtonModel.propertyChange(Tog

gleBookmarkAction.java:159)

Build 20070228-1024, WindowsXP, JDK1.5.0_10.
Comment 1 Jiri Skrivanek 2007-02-28 12:36:04 UTC
Created attachment 38972 [details]
Stack trace.
Comment 2 Vitezslav Stejskal 2007-02-28 23:27:02 UTC
Checking in ToggleBookmarkAction.java;
/cvs/editor/bookmarks/src/org/netbeans/lib/editor/bookmarks/actions/ToggleBookmarkAction.java,v
 <--  ToggleBookmarkAction.java
new revision: 1.5; previous revision: 1.4
done
Comment 3 Vitezslav Stejskal 2007-03-01 07:41:39 UTC
*** Issue 96894 has been marked as a duplicate of this issue. ***
Comment 4 Jan Lahoda 2007-03-01 08:03:24 UTC
*** Issue 96899 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Prox 2007-03-01 11:33:45 UTC
*** Issue 96926 has been marked as a duplicate of this issue. ***
Comment 6 Jiri Skrivanek 2007-03-02 11:39:21 UTC
Verified.