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 104960 - NPE while closing Bind dialog using invalid property
Summary: NPE while closing Bind dialog using invalid property
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 14:45 UTC by Jiri Vagner
Modified: 2007-06-11 14:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
104960-log.txt (5.00 KB, text/plain)
2007-05-28 14:49 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-05-28 14:45:13 UTC
Steps to reproduce:
 - create jframe
 - create jlabel
 - invoke popup menu for label and run "Bind -> text"
 - in binding source listbox select for example "Form"
 - in binding expression type "${text}"
 - press OK button
 - invoke popup menu again and again run "Bind -> text"
 - press OK button (you can also delete content of textfield)

I know that there is a treecombo with valid values, but binding expression input
contains "textfield" and anti-mouse user will use it as textfield. So it should
be nicer to user's type errors.
Comment 1 Jiri Vagner 2007-05-28 14:46:00 UTC
NetBeans IDE Dev (Build 200705271800)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Linux version 2.6.17-10-386 running on i386
en_US (nb); UTF-8
Comment 2 Jiri Vagner 2007-05-28 14:47:28 UTC
java.lang.NullPointerException
	at javax.beans.binding.Binding.unbind(Binding.java:779)
	at
org.netbeans.modules.form.BindingDesignSupport.removeBinding(BindingDesignSupport.java:770)
	at
org.netbeans.modules.form.BindingDesignSupport.removeBindingInModel(BindingDesignSupport.java:777)
	at
org.netbeans.modules.form.BindingDesignSupport.changeBindingInModel(BindingDesignSupport.java:87)
	at org.netbeans.modules.form.BindingProperty.setValue(BindingProperty.java:77)
Comment 3 Jiri Vagner 2007-05-28 14:49:29 UTC
Created attachment 42853 [details]
104960-log.txt
Comment 4 Jan Stola 2007-05-30 09:39:50 UTC
Fixed - the exception is no longer thrown.

Modified file:
/cvs/form/src/org/netbeans/modules/form/BindingDesignSupport.java
new revision: 1.4; previous revision: 1.3
Comment 5 Jiri Vagner 2007-06-11 14:56:45 UTC
Verified (NetBeans IDE Dev (Build 200706111212))