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 240991 - NPE in Navigator
Summary: NPE in Navigator
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Navigator (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
: 241771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-27 06:52 UTC by Vladimir Kvashin
Modified: 2014-07-08 12:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack (3.06 KB, text/plain)
2014-01-27 06:52 UTC, Vladimir Kvashin
Details
The fix could be as simple as attached one, however I'm not sure that's enough. (1.11 KB, patch)
2014-01-27 06:57 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2014-01-27 06:52:59 UTC
Created attachment 144391 [details]
stack

Once I've got an NPE in Navigator (unfortunately I don't remember exact steps to reproduce)

The stack top is here, full stack in the attachment

java.lang.NullPointerException
        at org.netbeans.modules.navigator.NavigatorController.getCurrentFileObject(NavigatorController.java:830)
        at org.netbeans.modules.navigator.NavigatorController.findMimeForContext(NavigatorController.java:805)
        at org.netbeans.modules.navigator.NavigatorController.access$300(NavigatorController.java:101)
        at org.netbeans.modules.navigator.NavigatorController$1.run(NavigatorController.java:415)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
Comment 1 Vladimir Kvashin 2014-01-27 06:57:24 UTC
Created attachment 144392 [details]
The fix could be as simple as attached one, however I'm not sure that's enough.
Comment 2 Jan Peska 2014-01-29 07:58:09 UTC
fix: http://hg.netbeans.org/core-main/rev/2432224ce242
Comment 3 Quality Engineering 2014-01-30 03:05:47 UTC
Integrated into 'main-silver', will be available in build *201401300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2432224ce242
User: Jan Peska <JPESKA@netbeans.org>
Log: Issue #240991 - NPE in Navigator
Some updates runs delayed, so it's possible that navigator was already closed, that's why the check
Comment 4 Jan Peska 2014-07-08 12:31:58 UTC
*** Bug 241771 has been marked as a duplicate of this bug. ***