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 224607 - [73cat] NullPointerException at org.netbeans.modules.editor.bookmarks.BookmarkUtils.getRelativeURI
Summary: [73cat] NullPointerException at org.netbeans.modules.editor.bookmarks.Bookmar...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 11:05 UTC by misterm
Modified: 2013-01-10 09:21 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 197277


Attachments
stacktrace (579 bytes, text/plain)
2013-01-08 11:06 UTC, misterm
Details
stacktrace (579 bytes, text/plain)
2013-01-08 11:50 UTC, Alexander Simon
Details
stacktrace (579 bytes, text/plain)
2013-01-08 11:53 UTC, Alexander Simon
Details
stacktrace (579 bytes, text/plain)
2013-01-08 11:56 UTC, Alexander Simon
Details
stacktrace (579 bytes, text/plain)
2013-01-08 13:44 UTC, vercinstex
Details
stacktrace (579 bytes, text/plain)
2013-01-08 13:47 UTC, vercinstex
Details
stacktrace (579 bytes, text/plain)
2013-01-08 14:35 UTC, misterm
Details
stacktrace (579 bytes, text/plain)
2013-01-08 14:41 UTC, misterm
Details
stacktrace (579 bytes, text/plain)
2013-01-08 15:26 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-01-08 11:05:59 UTC
Build: NetBeans IDE Dev (Build 20130108-3bf392aa2ad4)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.bookmarks.BookmarkUtils.getRelativeURI(BookmarkUtils.java:206)
   at org.netbeans.modules.editor.bookmarks.BookmarkManager.getFileBookmarks(BookmarkManager.java:272)
   at org.netbeans.lib.editor.bookmarks.api.BookmarkList$2.run(BookmarkList.java:166)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2048)
Comment 1 misterm 2013-01-08 11:06:00 UTC
Created attachment 129991 [details]
stacktrace
Comment 2 Alexander Simon 2013-01-08 11:50:21 UTC
Created attachment 129992 [details]
stacktrace

hyperlink to type
Comment 3 Milutin Kristofic 2013-01-08 11:52:12 UTC
projectURI can be null in constructor of ProjectBookmarks. Mila can you please check your scheduling algorithm.
Comment 4 Alexander Simon 2013-01-08 11:53:21 UTC
Created attachment 129993 [details]
stacktrace
Comment 5 Alexander Simon 2013-01-08 11:56:21 UTC
Created attachment 129994 [details]
stacktrace
Comment 6 Exceptions Reporter 2013-01-08 11:56:26 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=197277
Comment 7 Alexander Simon 2013-01-08 11:59:39 UTC
Regression after fixing bug #222095
P2 because it is a very annoyed exception that appears on every hyprlinking.
Comment 8 vercinstex 2013-01-08 13:44:21 UTC
Created attachment 130002 [details]
stacktrace
Comment 9 vercinstex 2013-01-08 13:47:21 UTC
Created attachment 130003 [details]
stacktrace
Comment 10 misterm 2013-01-08 14:35:21 UTC
Created attachment 130007 [details]
stacktrace
Comment 11 misterm 2013-01-08 14:41:21 UTC
Created attachment 130008 [details]
stacktrace
Comment 12 Ondrej Vrabec 2013-01-08 15:26:23 UTC
Created attachment 130009 [details]
stacktrace

Opening an empty text file. It does not belong to any project (lies next to the project folder on disk)
Comment 13 Miloslav Metelka 2013-01-08 20:50:04 UTC
Apologies, this was regression of issue #222095
http://hg.netbeans.org/jet-main/rev/e29b1e6c2268
Comment 14 Alexander Pepin 2013-01-09 12:06:35 UTC
It's still reproducible in build 20130109
Comment 15 Miloslav Metelka 2013-01-09 16:38:56 UTC
(In reply to comment #14)
> It's still reproducible in build 20130109

Did you build jet-main repository?
Comment 16 Jiri Kovalsky 2013-01-09 17:38:42 UTC
I confirm this is reproducible in #201301090001.
Comment 17 Quality Engineering 2013-01-10 03:30:46 UTC
Integrated into 'main-golden', will be available in build *201301100107* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e29b1e6c2268
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #224607 - [73cat] NullPointerException at org.netbeans.modules.editor.bookmarks.BookmarkUtils.getRelativeURI.
Comment 18 Miloslav Metelka 2013-01-10 09:21:30 UTC
(In reply to comment #16)
> I confirm this is reproducible in #201301090001.

Yes, but I commit into jet-main (see the URL of the changeset) and it takes some time to propagate the changesets into main-golden so until "Integrated into 'main-golden'..." appears in the issue your daily builds won't contain the fix. You would have to build jet-main manually to get the fix immediately.