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 47971 - NPE from OutputDocument.getElementIndex
Summary: NPE from OutputDocument.getElementIndex
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2004-08-26 02:00 UTC by Jesse Glick
Modified: 2008-12-23 00:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (999 bytes, text/plain)
2004-08-26 02:01 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-08-26 02:00:40 UTC
Current dev build. Was running same program over
and over many times in parallel. Occurred
randomly, so probably some threading problem.
Comment 1 Jesse Glick 2004-08-26 02:01:05 UTC
Created attachment 17155 [details]
Stack trace
Comment 2 Jesse Glick 2004-08-26 02:11:52 UTC
Happened again. Probably reproducible just by running a trivial
hello-world app fast and furiously.
Comment 3 _ tboudreau 2004-08-26 18:30:12 UTC
Should be fixed - if you can still reproduce it, please try to do so
with -J-Dnb.output.log=true - there are only two paths by which the
writer for an output document can become null, and both of them only
happen after the document has been replaced, so there should be no way
for the caret to get painted again over the old document.


cvs commit: Examining test/unit/src/org/netbeans/core/output2
Checking in src/org/netbeans/core/output2/Controller.java;
/cvs/core/output2/src/org/netbeans/core/output2/Controller.java,v  <--
 Controller.java
new revision: 1.20; previous revision: 1.19
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/core/output2/ui/AbstractOutputPane.java;
/cvs/core/output2/src/org/netbeans/core/output2/ui/AbstractOutputPane.java,v
 <--  AbstractOutputPane.java
new revision: 1.22; previous revision: 1.21
done
Processing log script arguments...
Mailing the commit message to cvs@core.netbeans.org (from
tboudreau@netbeans.org)
Comment 4 Marian Mirilovic 2005-12-20 15:46:01 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.