Summary: | NPE when pasting a member (that got deleted) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Erich Gamma <erich_gamma> |
Component: | UI | Assignee: | Adam Kiezun <akiezun> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P1 | ||
Version: | 2.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Erich Gamma
2002-01-08 05:35:29 EST
can't reproduce please give the class source code and specify what is selected when you 'paste' do you save the file after 3) ? can still reproduce. more precise steps: Type ttt method m1 1) select m1 2) copy 3) delete 4) select ttt 5) paste ->NPE reproduced. investigating new stack trace: java.lang.NullPointerException at org.eclipse.jdt.internal.corext.codemanipulation.MemberEdit.connect (MemberEdit.java:108) at org.eclipse.jdt.internal.corext.textmanipulation.TextBufferEditor.internalAdd (TextBufferEditor.java:207) at org.eclipse.jdt.internal.corext.textmanipulation.TextBufferEditor.add (TextBufferEditor.java:78) at org.eclipse.jdt.internal.ui.reorg.PasteSourceReferencesAction.paste (PasteSourceReferencesAction.java:156) at org.eclipse.jdt.internal.ui.reorg.PasteSourceReferencesAction.perform (PasteSourceReferencesAction.java:140) at org.eclipse.jdt.internal.ui.reorg.PasteSourceReferencesAction$1.run (PasteSourceReferencesAction.java:127) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.jdt.internal.ui.reorg.PasteSourceReferencesAction.run (PasteSourceReferencesAction.java:124) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:798) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:821) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14) working copy management horror again! fixed |