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 - NPE from ToggleBookmarkAction when closing file
Summary: NPE from ToggleBookmarkAction when closing file
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 96894 96899 96926 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-28 12:35 UTC by Jiri Skrivanek
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace. (1.80 KB, text/plain)
2007-02-28 12:36 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.