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 152307 - NullPointerException at org.netbeans.editor.StatusBar.applyColoring
Summary: NullPointerException at org.netbeans.editor.StatusBar.applyColoring
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL: http://statistics.netbeans.org/except...
Keywords: SIMPLEFIX
: 149752 161431 162269 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-04 14:39 UTC by djvogt
Modified: 2009-09-15 01:45 UTC (History)
16 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 135939


Attachments
stacktrace (1.04 KB, text/plain)
2008-11-04 14:39 UTC, djvogt
Details
messages.log (144.17 KB, text/plain)
2009-03-17 06:50 UTC, redoctober
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djvogt 2008-11-04 14:39:27 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.16.53-0.16-smp, i386

User Comments:
djvogt: In the Options window, with the "Fonts & Colors" category selected, the "Syntax" tab selected. Clicking the "Preview:" area causes the exception.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.editor.StatusBar.applyColoring(StatusBar.java:363)
        at org.netbeans.editor.StatusBar.refreshPanel(StatusBar.java:517)
        at org.netbeans.editor.StatusBar.access$000(StatusBar.java:97)
        at org.netbeans.editor.StatusBar$$.run(StatusBar.java:156)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
Comment 1 djvogt 2008-11-04 14:39:33 UTC
Created attachment 73200 [details]
stacktrace
Comment 2 Jiri Prox 2008-11-04 14:58:05 UTC
I cannot reproduce it with current dev build.
Which language was selected and what element did you clik on?
Comment 3 djvogt 2008-11-04 15:12:38 UTC
The Language was set to "XML". Clicking anywhere in the preview area, including empty space, causes the exception. This 
occurs in 6.5 RC2.
Comment 4 Exceptions Reporter 2008-12-03 08:24:13 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=135939
Comment 5 Vitezslav Stejskal 2009-02-16 15:20:43 UTC
local changeset: 7a35fc06b7bc
Comment 6 Quality Engineering 2009-02-18 10:45:02 UTC
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7a35fc06b7bc
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #152307: NPE
Comment 7 Vitezslav Stejskal 2009-02-27 11:44:40 UTC
*** Issue 149752 has been marked as a duplicate of this issue. ***
Comment 8 Marian Mirilovic 2009-02-27 14:34:04 UTC
219 duplicates ... probably issue for NB 6.5.1 ?
Comment 9 Jiri Prox 2009-02-27 16:02:35 UTC
I cannot reproduce it in 6.5.1, Vito are there any specific steps I have to perform to get this exception. I've tried
clicking in XML preview but w/o any success
Comment 10 redoctober 2009-03-08 06:11:49 UTC
Please fix this ASAP or find a workaround.  I cannot open any files (and therefore cannot really use NetBeans) because
of this problem (it says "Loading" forever).
Comment 11 redoctober 2009-03-08 08:11:43 UTC
I'm not sure if this is related, but I can no longer see the default Java platform (I try to add JDK 1.6.0_06, but it
never shows up) and when I try to use "Help", the Contents are empty.
Comment 12 redoctober 2009-03-08 17:26:32 UTC
re-opening.
Comment 13 Jiri Prox 2009-03-16 18:06:03 UTC
lordkelvan: can you describe more your problem? Steps to reproduce anr/or screen shot will be welcome. Attach also
messages.log.

Thanks
Comment 14 redoctober 2009-03-17 06:50:02 UTC
Created attachment 78280 [details]
messages.log
Comment 15 redoctober 2009-03-17 07:03:46 UTC
Ok, I've attached my messages.log (I replaced my username with "MY_USER_NAME").  When I got the error and submitted the
report (from within the editor), netbeans.org determined my problem to be a duplicate of this issue.  However, even
though the stacktrace seems similar, my situation is different than that of the original submitter.  

The sequence of events was:
1) Download and install the Subversion plugin
2) Restart NetBeans immediately after
3) The bug appeared after restarting - any file I tried to open would get stuck displaying "Loading" and the same
Null-pointer Exception (NPE) would occur multiple times.

I've since re-installed NetBeans and the bug hasn't shown itself, even though I downloaded the Subversion plugin and
restarted NetBeans just like I had last time.
Comment 16 Vitezslav Stejskal 2009-03-20 09:06:50 UTC
The original NPE was fixed by my http://hg.netbeans.org/main/rev/7a35fc06b7bc. From the log file it looks like the NPE
may have been responsible for editor panes stuck in the 'Loading...' phase. Please try newer version, the problem has
been resolved in 6.7 dev builds since build *200902180201* (http://bits.netbeans.org/dev/nightly/). Thanks
Comment 17 Jiri Prox 2009-03-30 09:07:15 UTC
*** Issue 161431 has been marked as a duplicate of this issue. ***
Comment 18 Jiri Prox 2009-04-09 11:21:58 UTC
*** Issue 162269 has been marked as a duplicate of this issue. ***