Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353567 - UE NPE when copy pasting in the Central Test Data Editor
Summary: UE NPE when copy pasting in the Central Test Data Editor
Status: CLOSED DUPLICATE of bug 401277
Alias: None
Product: Jubula
Classification: Technology
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Oliver Goetz CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 08:25 EDT by Tim Winselmann CLA
Modified: 2013-02-28 07:21 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Winselmann CLA 2011-08-02 08:25:56 EDT
If you try to copy/paste a central test data set an unexpected error null pointer exception occurs. I think copy pasting shouldn't be enabled at the moment - but it would be really nice if it is possible to copy paste a central test data set.
I would like to test a preferences page with much inputs and want to create one central test data set that contains default values and another central test data set, that contains the "real" test data. In both cases the parameters would be the same, just the values would change. Copy and paste would be so much faster :)

Stacktrace:

3004: Unexpected error occurred.
  java.lang.ClassCastException: org.eclipse.jubula.client.ui.editors.CentralTestDataEditor cannot be cast to org.eclipse.jubula.client.ui.editors.AbstractTestCaseEditor
  	at org.eclipse.jubula.client.ui.actions.PasteTreeItemActionTCEditor.run(PasteTreeItemActionTCEditor.java:35)
  	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
  	at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
  	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
  	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
  	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
  	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
  	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
  	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
  	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
  	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
  	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
  	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1253)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
  	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1103)
  	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099)
  	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508)
  	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4268)
  	at org.eclipse.swt.widgets.Tree.WM_CHAR(Tree.java:5848)
  	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4160)
  	at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5844)
  	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886)
  	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
  	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
  	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
  	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
  	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
  	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
  	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
  	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
  	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  	at com.bredexsw.guidancer.app.Launcher.start(Unknown Source)
  	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
  	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  	at java.lang.reflect.Method.invoke(Unknown Source)
  	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
  	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
  	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
  	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Alexandra Schladebeck CLA 2011-08-02 08:29:50 EDT
Additional information: 

The context-menu doesn't contain an entry for copy or paste, so the problem will only occur if somebody decides to see if it works via the keyboard. 

The UE occurs when pressing Ctrl+V. Ctrl+C doesn't cause the error.
Comment 2 Alexandra Schladebeck CLA 2013-02-28 07:21:57 EST

*** This bug has been marked as a duplicate of bug 401277 ***