FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 406 : Changing editor font in IDE throws NullPointerException
Last modified: 2007-02-03 09:40
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P3
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
matthew.thompson
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2006-10-04 18:15
Running 0118 Build on Mac OS X.
1) Go to preferences and focus on "Editor font size:"
2) Change to any normal value (I tried to change to 12)
3) Press OK to accept changes, but the following is thrown in console:
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NumberFormatException: null
java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(Integer.java:436)
at java.lang.Integer.parseInt(Integer.java:518)
at processing.app.Preferences.getInteger(Preferences.java:712)
at processing.app.Preferences.applyFrame(Preferences.java:499)
at processing.app.Preferences$2.actionPerformed(Preferences.java:377)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1872)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:
247)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
174)
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.Dialog.show(Dialog.java:561)
at processing.app.Preferences.showFrame(Preferences.java:551)
at processing.app.Editor.handlePrefs(Editor.java:1031)
at com.apple.mrj.MRJPriv$MRJPreferencesApplicationAdapter.handlePreferences
(MRJPriv.java:402)
at com.apple.eawt.Application$5.run(Application.java:374)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Additional Comment
#1 From fry 2006-10-05 12:33
i can't get this to reproduce, but it seems related to this problem:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1160057791
and for you i'd have the same question: is it possible that the "monaco"
font on your machine has either 1) become corrupt 2) gone missing or 3)
have an additional version installed that's causing a conflict?
is there any other software you might have installed that could be causing
th issue? what sort of machine are you running on? have you installed an
early access release of Java? (i.e. the developer preview of Java 1.6?)
also try setting your default java version for 1.4 instead of 1.5, and see
if you get the same problem.
Additional Comment
#2 From fry 2006-11-03 20:20
i've looked into this further, it seems that something went corrupt in your
preferences file. the options that control the memory setting (the one
below the editor font size) seem to be missing. is it possible that
preferences.txt was edited in some way, or for instance if you had two
different versions of processing open at the same time?
Additional Comment
#3 From fry 2006-11-03 20:21
link to proper source version for debugging:
http://dev.processing.org/source/index.cgi/trunk/processing/app/Preferences.java?rev=2494&view=markup
Additional Comment
#4 From fry 2007-02-03 09:40
no response, closing bug.