Project: JDT
Bug 85267 NPE in JavaElementResourceMapping when replacing changed package with latest from HEAD
Reported: 2005-02-15 10:29:12 | Status: verified fixed

I20050215-0800 - Remove InferTypeArgumentsTCModel.java from package org.eclipse.jdt.internal.corext.refactoring.generics - select the package and choose 'Replace With > Latest from HEAD' Error 2005-02-15 16:24:50.909 java.lang.NullPointerException java.lang.NullPointerException at org.eclipse.jdt.internal.corext.util.JavaElementResourceMapping$PackageFragmentResourceMapping.accept(JavaElementResourceMapping.java:186) at org.eclipse.team.internal.ccvs.ui.actions.UncommittedChangesDialog.matchesFilter(UncommittedChangesDialog.java:103) at org.eclipse.team.internal.ccvs.ui.actions.UncommittedChangesDialog.getMatchingMappings(UncommittedChangesDialog.java:94) at org.eclipse.team.internal.ccvs.ui.actions.UncommittedChangesDialog.<init>(UncommittedChangesDialog.java:50) at org.eclipse.team.internal.ccvs.ui.actions.ReplaceWithTagAction$1.<init>(ReplaceWithTagAction.java:37) at org.eclipse.team.internal.ccvs.ui.actions.ReplaceWithTagAction.getPromptingDialog(ReplaceWithTagAction.java:37) at org.eclipse.team.internal.ccvs.ui.actions.ReplaceWithTagAction.checkOverwriteOfDirtyResources(ReplaceWithTagAction.java:54) at org.eclipse.team.internal.ccvs.ui.actions.ReplaceWithRemoteAction$1.run(ReplaceWithRemoteAction.java:35) at org.eclipse.team.internal.ccvs.ui.repo.RepositoryManager.run(RepositoryManager.java:659) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$2.run(CVSAction.java:339) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction$3.run(CVSAction.java:348) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction.run(CVSAction.java:345) at org.eclipse.team.internal.ccvs.ui.actions.ReplaceWithRemoteAction.execute(ReplaceWithRemoteAction.java:40) at org.eclipse.team.internal.ccvs.ui.actions.CVSAction.run(CVSAction.java:114) at org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java:70) at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:234) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:557) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:507) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:421) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2909) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2542) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268) at org.eclipse.core.launcher.Main.basicRun(Main.java:260) at org.eclipse.core.launcher.Main.run(Main.java:887) at org.eclipse.core.launcher.Main.main(Main.java:871)

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/JavaElementResourceMapping.java