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 194366 - [70cat] Null Pointer when changing font size and type with new, unsaved file and project in editor
Summary: [70cat] Null Pointer when changing font size and type with new, unsaved file ...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: David Strupl
URL:
Keywords:
: 192246 193298 193299 194266 194386 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-14 21:01 UTC by esmithbss
Modified: 2011-05-19 12:24 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log (118.23 KB, application/octet-stream)
2011-01-14 21:01 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2011-01-14 21:01:19 UTC
When changing the font from Monospaced 12 to Lucida Console 9 with a build.xml file and a new application's main file open, the following NPE was thrown:


WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up modules/dict/dictionary_en_US.description at org.netbeans.modules.spellchecker.DictionaryProviderImpl.getDictionaryStream(DictionaryProviderImpl.java:183)
SEVERE [global]
java.lang.NullPointerException
        at org.netbeans.modules.editor.lib2.view.DocumentView.propertyChange(DocumentView.java:1297)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
        at java.awt.Component.firePropertyChange(Component.java:8132)
        at org.openide.text.QuietEditorPane.firePropertyChange(QuietEditorPane.java:209)
        at java.awt.Component.setFont(Component.java:1793)
        at java.awt.Container.setFont(Container.java:1554)
        at javax.swing.JComponent.setFont(JComponent.java:2723)
        at org.openide.text.QuietEditorPane.setFont(QuietEditorPane.java:132)
        at org.netbeans.modules.editor.lib2.view.DocumentView.updateDefaultFontAndColors(DocumentView.java:770)
        at org.netbeans.modules.editor.lib2.view.DocumentView$3$1$1.run(DocumentView.java:666)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1419)
        at org.netbeans.modules.editor.lib2.view.DocumentView$3$1.run(DocumentView.java:657)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 esmithbss 2011-01-14 21:01:40 UTC
Created attachment 105009 [details]
IDE Log
Comment 2 esmithbss 2011-01-14 21:06:05 UTC
This is the first invocation of the 20110114 build.

Tasks performed in this session (I think order is correct):

1) Loaded existing projects.  Closed most open files.  Examined 1 build.xml file.

2) Examine properties and options

3) Submitted 2 enhancement requests.

4) Created a new project.

5) Added a new Library for dbUnit (include source for library)

6) Edit new project's main file (add 1 line of code).

7) Change Font size.

At this point, the exception was raised and an attempt was made to submit it; however, result of submission was:

No data found at http://statistics.netbeans.org/analytics/uploaddone.jsp?id=49128c2f-ba86-4aa7-96f9-5c69d136aa21_7b34b2eb-f980-4cbf-a8c7-c39deecb910d.
The problem can be caused by broken internet connection or on server side. Try to report problem later again. If you would face this problem repeatedly, submit a bug at http://www.netbeans.org/issues/enter_bug.cgi against Exception reporter, please.
Comment 3 David Strupl 2011-01-18 08:42:16 UTC
http://hg.netbeans.org/jet-main/rev/025e65b57168
Comment 4 Miloslav Metelka 2011-01-21 15:39:32 UTC
*** Bug 194386 has been marked as a duplicate of this bug. ***
Comment 5 Miloslav Metelka 2011-02-02 15:29:02 UTC
*** Bug 192246 has been marked as a duplicate of this bug. ***
Comment 6 Miloslav Metelka 2011-05-19 12:23:09 UTC
*** Bug 193298 has been marked as a duplicate of this bug. ***
Comment 7 Miloslav Metelka 2011-05-19 12:23:46 UTC
*** Bug 193299 has been marked as a duplicate of this bug. ***
Comment 8 Miloslav Metelka 2011-05-19 12:24:07 UTC
*** Bug 194266 has been marked as a duplicate of this bug. ***