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 - Feature Derive font causes problem in promoH
Summary: Feature Derive font causes problem in promoH
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-30 15:48 UTC by Jana Maleckova
Modified: 2007-04-05 15:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
99561_1 (1.58 KB, text/plain)
2007-03-30 15:50 UTC, Jana Maleckova
Details
99561_2 (1.88 KB, text/plain)
2007-03-30 15:53 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
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