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.
NetBeans IDE Dev (Build 070329) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Windows XP version 5.1 running on x86 en_GB (nb); Cp1252 Description: ============ Add1: It's not possible to set component's font as a derivation from the default one. When the check box "Derive the font from the default font" is checked in font editor , an exception occurs. Add2: This could cause that all forms created in nowadays trunk (NetBeans IDE Dev (Build 200703280911) and have component which font property is set as a derivation, is not possible to save or build in branch build. Ever attempt is attended by exceptions. StacktTrace:(add1) ============ java.lang.NullPointerException at org.netbeans.modules.form.editors2.FontEditor.storeToXML(FontEditor.java:369) at org.netbeans.modules.form.GandalfPersistenceManager.saveProperty(GandalfPersistenceManager.java:3775) at org.netbeans.modules.form.GandalfPersistenceManager.saveProperties(GandalfPersistenceManager.java:3709) at org.netbeans.modules.form.GandalfPersistenceManager.saveComponent(GandalfPersistenceManager.java:3627) StackTrace: (add2) ================== java.lang.AssertionError: Object org.netbeans.modules.form.editors2.FontEditor$NbFont@1e067cc is instanceof Font or null at org.netbeans.beaninfo.editors.FontEditor.setValue(FontEditor.java:99) at org.netbeans.modules.form.GandalfPersistenceManager.saveProperty(GandalfPersistenceManager.java:3774) at org.netbeans.modules.form.GandalfPersistenceManager.saveProperties(GandalfPersistenceManager.java:3709) at org.netbeans.modules.form.GandalfPersistenceManager.saveComponent(GandalfPersistenceManager.java:3627)
Created attachment 40199 [details] 99561_1
Created attachment 40200 [details] 99561_2
Fixed. /cvs/form/src/org/netbeans/modules/form/editors2/FontEditor.java new revision: 1.7.6.7; previous revision: 1.7.6.6
Tested on NetBeans IDE Dev (Build 070405) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Windows XP version 5.1 running on x86 en_GB (nb); Cp1252 It's OK