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 99561

Summary: Feature Derive font causes problem in promoH
Product: guibuilder Reporter: Jana Maleckova <janie>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: 99561_1
99561_2

Description Jana Maleckova 2007-03-30 15:48:59 UTC
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)
Comment 1 Jana Maleckova 2007-03-30 15:50:53 UTC
Created attachment 40199 [details]
99561_1
Comment 2 Jana Maleckova 2007-03-30 15:53:40 UTC
Created attachment 40200 [details]
99561_2
Comment 3 Tomas Pavek 2007-04-04 14:54:14 UTC
Fixed.

/cvs/form/src/org/netbeans/modules/form/editors2/FontEditor.java
new revision: 1.7.6.7; previous revision: 1.7.6.6
Comment 4 Jana Maleckova 2007-04-05 15:19:51 UTC
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