Bug 118069 - Crosscutting Comparison view produces NPEs when project is deleted
Summary: Crosscutting Comparison view produces NPEs when project is deleted
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 1.2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2.1   Edit
Assignee: Matt Chapman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 10:43 EST by Sian January CLA
Modified: 2005-11-28 08:00 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sian January CLA 2005-11-25 10:43:03 EST
If you choose to compare a crosscutting map with the current build for a project, and then delete that project an NPE occurs.  This then also happens for every subsequent build until the view is closed, which is why I have marked it to be fixed for 1.2.1. Stack trace shown below:

java.lang.NullPointerException
	at org.eclipse.ajdt.core.model.ModelComparison.compare(ModelComparison.java:40)
	at org.eclipse.ajdt.internal.ui.diff.ChangesView.performComparison(ChangesView.java:370)
	at org.eclipse.ajdt.internal.ui.diff.ChangesView.refreshIfCurrentBuild(ChangesView.java:114)
	at org.eclipse.ajdt.internal.ui.diff.ChangesView.refresh(ChangesView.java:106)
	at org.eclipse.ajdt.internal.builder.UIBuildListener$1.run(UIBuildListener.java:228)
	at org.eclipse.ui.internal.UILockListener.doPendingWork(Unknown Source)
	at org.eclipse.ui.internal.UISynchronizer$1.run(Unknown Source)
	at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
	at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
	at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Source)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
	at java.lang.reflect.Method.invoke(Method.java:391)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
	at org.eclipse.core.launcher.Main.run(Main.java:704)
	at org.eclipse.core.launcher.Main.main(Main.java:688)
Comment 1 Matt Chapman CLA 2005-11-28 08:00:15 EST
Fixed in 1.3.0:
BUILD COMPLETE -  build.28
Date of build:	11/28/2005 06:30:19
Time to build:	15 minutes 28 seconds
Last changed:	11/28/2005 06:15:19
Last log entry:	Fix for bug 118055 - some images missing transparency

and 1.2.1:
BUILD COMPLETE -  build.588
Date of build: 11/28/2005 11:32:29
Time to build: 44 minutes 32 seconds
Last changed: 11/28/2005 11:16:47
Last log entry: Fix for bug 118055 - some icons missing transparency