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 185154 - NullPointerException at org.netbeans.lib.terminalemulator.support.TermOptions.makeCopy
Summary: NullPointerException at org.netbeans.lib.terminalemulator.support.TermOptions...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: ivan
URL:
Keywords:
: 185155 185157 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-28 08:13 UTC by anba
Modified: 2010-12-16 09:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 168771


Attachments
stacktrace (3.14 KB, text/plain)
2010-04-28 08:13 UTC, anba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anba 2010-04-28 08:13:18 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004200117)
VM: Java HotSpot(TM) Server VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Linux

User Comments:
anba: Clicking Cancel




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.terminalemulator.support.TermOptions.makeCopy(TermOptions.java:111)
   at org.netbeans.modules.terminal.TermAdvancedOption$MyOptionsPanelController.reset(TermAdvancedOption.java:75)
   at org.netbeans.modules.terminal.TermAdvancedOption$MyOptionsPanelController.cancel(TermAdvancedOption.java:98)
   at org.netbeans.modules.options.advanced.Model$DelegatingController.cancel(Model.java:298)
   at org.netbeans.modules.options.advanced.Model.cancel(Model.java:184)
   at org.netbeans.modules.options.advanced.AdvancedPanel.cancel(AdvancedPanel.java:106)
Comment 1 anba 2010-04-28 08:13:28 UTC
Created attachment 98184 [details]
stacktrace
Comment 2 ivan 2010-04-28 19:37:56 UTC
The NPE must be happening because selectionBackground is null.
It is, in turn, set by UIManager.getColor("TextArea.selectionBackground").
I guess it's possible that getColor() would return null.
Comment 3 ivan 2010-04-28 19:39:06 UTC
*** Bug 185155 has been marked as a duplicate of this bug. ***
Comment 4 ivan 2010-04-28 19:40:22 UTC
*** Bug 185157 has been marked as a duplicate of this bug. ***
Comment 5 ivan 2010-05-05 06:13:46 UTC
I can reproduce this by running NB with "--laf Nimbus"
Comment 6 Quality Engineering 2010-05-10 09:22:51 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 7 Vladimir Voskresensky 2010-12-15 21:54:32 UTC
let's evaluate exceptions as P2 issues
Comment 8 ivan 2010-12-15 22:05:41 UTC
(In reply to comment #7)
> let's evaluate exceptions as P2 issues

OK.
It seems that the changeset in Comment #7 is related to some 
other fix by mistake.
Comment 9 ivan 2010-12-16 09:35:41 UTC
Fixed a while ago.
Changeset: http://hg.netbeans.org/main/rev/f56976dff623