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 63600 - operators, NullPointerException in JComboBoxOperator.enterText(String)
Summary: operators, NullPointerException in JComboBoxOperator.enterText(String)
Status: CLOSED WONTFIX
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-03 00:12 UTC by arhus
Modified: 2011-02-17 09:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arhus 2005-09-03 00:12:42 UTC
If JComboBox is non-editable, the JComboBoxOperator throws NullPointerException
when enterText(String) is called. It looks like a bug in the code, since the
exception is not declared to be thrown.

Lines 577 - 578 are suspicious. See the stack trace below for more details.

JComboBoxHandler$AutomationContext: Handler's automation context automation error

java.lang.reflect.InvocationTargetException: null
	 at invoke0 (sun.reflect.NativeMethodAccessorImpl:-2)
	 at invoke (sun.reflect.NativeMethodAccessorImpl:-1)
	 at invoke (sun.reflect.DelegatingMethodAccessorImpl:-1)
	 at invoke (java.lang.reflect.Method:-1)
	 at callMethod (jeek.handlers.TestHandler$AutomationContext:409)
	 at automate (jeek.handlers.TestHandler:128)
	 at trueRunAction
(jeek.modules.automatizer.dautomatizer.ActionDispatcher$ActionRunner:240)
	 at runAction
(jeek.modules.automatizer.dautomatizer.ActionDispatcher$ActionRunner:167)
	 at run (jeek.modules.automatizer.dautomatizer.ActionDispatcher$ActionRunner:123)

java.lang.NullPointerException: null
	 at enterText (org.netbeans.jemmy.operators.JComboBoxOperator:578)
	 at setText (jeek.handlers.JComboBoxHandler$AutomationContext:208)
	 at invoke0 (sun.reflect.NativeMethodAccessorImpl:-2)
	 at invoke (sun.reflect.NativeMethodAccessorImpl:-1)
	 at invoke (sun.reflect.DelegatingMethodAccessorImpl:-1)
	 at invoke (java.lang.reflect.Method:-1)
	 at callMethod (jeek.handlers.TestHandler$AutomationContext:409)
	 at automate (jeek.handlers.TestHandler:128)
	 at trueRunAction
(jeek.modules.automatizer.dautomatizer.ActionDispatcher$ActionRunner:240)
	 at runAction
(jeek.modules.automatizer.dautomatizer.ActionDispatcher$ActionRunner:167)
	 at run (jeek.modules.automatizer.dautomatizer.ActionDispatcher$ActionRunner:123)
Comment 1 Marian Mirilovic 2011-02-17 08:54:16 UTC
Jemmy sources/the whole project was moved to java.nt. In case  you still want to get issue fixed, please report it here :
http://java.net/jira/browse/JEMMY