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 61253 - NPE from CloneableEditorSupport
Summary: NPE from CloneableEditorSupport
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2005-07-21 20:35 UTC by Martin Krauskopf
Modified: 2008-12-22 23:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (722 bytes, text/plain)
2005-07-21 20:36 UTC, Martin Krauskopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Krauskopf 2005-07-21 20:35:36 UTC
Hard to reproduce. But

1) A lot of opened files in editor
2) switch from IDE and delete some of those opened files
3) cvs up still outside of IDE
4) switch back to IDE (so they should be refreshed in IDE)
5) and immediately press Ctrl-Shift-F4

Not standard usecase :) but shouldn't thrown NPE (see. attach). Probably just
check for the null at line with "doc.addUndoableEditListener(getUndoRedo());"
Comment 1 Martin Krauskopf 2005-07-21 20:36:33 UTC
Created attachment 23226 [details]
NPE
Comment 2 Petr Nejedly 2005-08-02 11:52:28 UTC
Fixed:
openide/text/src/org/openide/text/CloneableEditorSupport.java,v1.6

Please try to verify.