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 182625 - Closing the editor tab causes AssertionError: Null textComponent
Summary: Closing the editor tab causes AssertionError: Null textComponent
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: issues@editor
URL:
Keywords:
: 182640 182939 183037 183132 183279 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-24 03:08 UTC by mjreged
Modified: 2010-04-06 21:22 UTC (History)
22 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166859


Attachments
stacktrace (3.12 KB, text/plain)
2010-03-24 03:08 UTC, mjreged
Details
stacktrace (3.17 KB, text/plain)
2010-03-24 10:40 UTC, stefan79
Details
stacktrace (3.70 KB, text/plain)
2010-03-24 12:30 UTC, maghiel
Details
stacktrace (4.36 KB, text/plain)
2010-03-24 13:03 UTC, Jaromir Uhrik
Details
stacktrace (3.70 KB, text/plain)
2010-03-24 13:17 UTC, stefan79
Details
stacktrace (4.90 KB, text/plain)
2010-03-24 13:54 UTC, athompson
Details
stacktrace (6.46 KB, text/plain)
2010-03-24 13:55 UTC, Petr Jiricka
Details
stacktrace (2.58 KB, text/plain)
2010-03-24 14:20 UTC, jasondonmoyer
Details
stacktrace (6.44 KB, text/plain)
2010-03-24 14:38 UTC, Tomas Mysik
Details
stacktrace (4.90 KB, text/plain)
2010-03-24 15:17 UTC, Jesse Glick
Details
stacktrace (3.17 KB, text/plain)
2010-03-24 16:08 UTC, Jaromir Uhrik
Details
stacktrace (3.70 KB, text/plain)
2010-03-24 17:27 UTC, Jiri Kovalsky
Details
stacktrace (3.70 KB, text/plain)
2010-03-24 18:27 UTC, esmithbss
Details
stacktrace (3.70 KB, text/plain)
2010-03-24 18:33 UTC, esmithbss
Details
stacktrace (7.81 KB, text/plain)
2010-03-27 22:29 UTC, host
Details
stacktrace (7.81 KB, text/plain)
2010-03-28 19:08 UTC, host
Details
stacktrace (6.68 KB, text/plain)
2010-03-29 08:28 UTC, esmithbss
Details
stacktrace (7.65 KB, text/plain)
2010-03-29 11:27 UTC, Egor Ushakov
Details
stacktrace (7.74 KB, text/plain)
2010-03-29 12:50 UTC, leonhad
Details
stacktrace (8.62 KB, text/plain)
2010-03-29 17:04 UTC, abajja
Details
stacktrace (8.06 KB, text/plain)
2010-03-29 20:55 UTC, host
Details
stacktrace (6.37 KB, text/plain)
2010-03-30 18:21 UTC, Michel Graciano
Details
stacktrace (6.37 KB, text/plain)
2010-03-31 14:46 UTC, Michel Graciano
Details
stacktrace (5.25 KB, text/plain)
2010-04-06 07:51 UTC, J Bachorik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjreged 2010-03-24 03:08:29 UTC
Build: NetBeans IDE Dev (Build 100323-8e68ba49dec8)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b11, Java(TM) SE Runtime Environment, 1.6.0_20-ea-b01
OS: Linux

User Comments:
mjreged: Browsing Mercurial outgoing changesets. Before deciding to push to remote repository. Clicked Diff section and clicked on one of the files inside the changesets to see a diff side by side.




Stacktrace: 
java.lang.AssertionError: Null textComponent
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.repaintAndReplaceViews(ViewBuilder.java:0)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:0)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:0)
   at org.netbeans.modules.editor.lib2.view.EditorViewFactory.fireEvent(EditorViewFactory.java:0)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.highlightChanged(HighlightsViewFactory.java:0)
   at org.netbeans.spi.editor.highlighting.support.AbstractHighlightsContainer.fireHighlightsChange(AbstractHighlightsContainer.java:0)
Comment 1 mjreged 2010-03-24 03:08:34 UTC
Created attachment 95631 [details]
stacktrace
Comment 2 stefan79 2010-03-24 10:40:21 UTC
Created attachment 95661 [details]
stacktrace

Made a CVS-Diff at my src-folder.
Comment 3 maghiel 2010-03-24 12:30:24 UTC
Created attachment 95669 [details]
stacktrace

Went to Options > Fonts & Colors 
(this build changed my fonts & tab/spaces settings)
Comment 4 Jaromir Uhrik 2010-03-24 13:03:24 UTC
Created attachment 95671 [details]
stacktrace

Typed in editor and exception appeared...
Comment 5 stefan79 2010-03-24 13:17:24 UTC
Created attachment 95674 [details]
stacktrace

Tools > Options > Fonts & Colors.
Comment 6 athompson 2010-03-24 13:54:25 UTC
Created attachment 95680 [details]
stacktrace

closed an editor window (because code folding was not working properly in it)
Comment 7 Petr Jiricka 2010-03-24 13:55:25 UTC
Created attachment 95681 [details]
stacktrace

Trying out Tonda's patch for bug 182448.
Comment 8 jasondonmoyer 2010-03-24 14:20:25 UTC
Created attachment 95684 [details]
stacktrace

if you use ctrl-z in a editor tab that has no changes, all text from that editor tab will be cleared.  If you then try to close that editor tab, you'll get this exception
Comment 9 Tomas Mysik 2010-03-24 14:38:26 UTC
Created attachment 95688 [details]
stacktrace

Editor closed
Comment 10 David Strupl 2010-03-24 14:49:30 UTC
Making this P2 as it is quite annoying.
Comment 11 Jesse Glick 2010-03-24 15:17:28 UTC
Created attachment 95698 [details]
stacktrace
Comment 12 Exceptions Reporter 2010-03-24 15:44:29 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=166859
Comment 13 Jaromir Uhrik 2010-03-24 16:08:28 UTC
Created attachment 95704 [details]
stacktrace

invoked mercurial status action
displayed dif for project properties
-->> exception appeared
Comment 14 Jiri Kovalsky 2010-03-24 17:27:32 UTC
Created attachment 95712 [details]
stacktrace

Switching from "Editor" options to "Fonts & Colors".
Comment 15 esmithbss 2010-03-24 18:27:34 UTC
Created attachment 95715 [details]
stacktrace

Changing the options.  This may be associated with the Font Syntax tab or the Editor tab.  It appeared as I switched between them.
Comment 16 esmithbss 2010-03-24 18:33:32 UTC
Created attachment 95717 [details]
stacktrace

Saving options.  This is based on the preview component on the font syntax tab.
Comment 17 host 2010-03-27 22:29:48 UTC
Created attachment 96077 [details]
stacktrace
Comment 18 host 2010-03-28 19:08:12 UTC
Created attachment 96110 [details]
stacktrace
Comment 19 esmithbss 2010-03-29 08:28:24 UTC
Created attachment 96139 [details]
stacktrace

debugging a ruby on rails application.
Comment 20 Egor Ushakov 2010-03-29 11:27:27 UTC
Created attachment 96170 [details]
stacktrace

closed all files in the editor
Comment 21 leonhad 2010-03-29 12:50:28 UTC
Created attachment 96190 [details]
stacktrace

Closed all windows (by Second button Mouse  Menu)
Comment 22 abajja 2010-03-29 17:04:32 UTC
Created attachment 96258 [details]
stacktrace

This happened while debugging an application.
Comment 23 athompson 2010-03-29 17:12:05 UTC
Too common, too obvious, and too annoying.  P1.
Comment 24 athompson 2010-03-29 17:16:01 UTC
How about suppressing this AE until there's a fix?
Comment 25 host 2010-03-29 20:55:34 UTC
Created attachment 96281 [details]
stacktrace
Comment 26 Jan Lahoda 2010-03-30 07:28:03 UTC
*** Bug 183132 has been marked as a duplicate of this bug. ***
Comment 27 Jan Lahoda 2010-03-30 07:28:20 UTC
*** Bug 183037 has been marked as a duplicate of this bug. ***
Comment 28 Miloslav Metelka 2010-03-30 14:15:48 UTC
http://hg.netbeans.org/jet-main/rev/d66a6e6b86ad
Comment 29 Michel Graciano 2010-03-30 18:21:46 UTC
Created attachment 96379 [details]
stacktrace
Comment 30 Michel Graciano 2010-03-31 14:46:01 UTC
Created attachment 96459 [details]
stacktrace
Comment 31 esmithbss 2010-04-01 05:49:25 UTC
In case the patch isn't a complete fix, this appears to be happening with new editor windows when the window is created, but the file hasn't been painted into it yet.
Comment 32 Quality Engineering 2010-04-02 05:05:01 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d66a6e6b86ad
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #182625 - Closing the editor tab causes AssertionError: Null textComponent.
Comment 33 David Strupl 2010-04-03 10:45:21 UTC
*** Bug 183279 has been marked as a duplicate of this bug. ***
Comment 34 J Bachorik 2010-04-06 07:51:04 UTC
Created attachment 96731 [details]
stacktrace
Comment 35 Jan Lahoda 2010-04-06 14:32:31 UTC
*** Bug 182939 has been marked as a duplicate of this bug. ***
Comment 36 David Strupl 2010-04-06 21:22:23 UTC
*** Bug 182640 has been marked as a duplicate of this bug. ***