Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324706 - NullPointerException when opening Aspect Visualization perspective
Summary: NullPointerException when opening Aspect Visualization perspective
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 2.1.1   Edit
Assignee: Andrew Eisenberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 19:36 EDT by Jesse Englert CLA
Modified: 2010-09-20 14:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Englert CLA 2010-09-07 19:36:40 EDT
Build Identifier: I20100608-0911

Here's the stacktrace:


java.lang.NullPointerException
at org.eclipse.ajdt.internal.ui.visualiser.AJDTMarkupProvider.updateModel(AJDTMarkupProvider.java:140)
at org.eclipse.ajdt.internal.ui.visualiser.AJDTMarkupProvider.getAllMarkupKinds(AJDTMarkupProvider.java:266)
at org.eclipse.contribution.visualiser.views.Menu.update(Menu.java:412)
at org.eclipse.contribution.visualiser.views.Menu.access$11(Menu.java:410)
at org.eclipse.contribution.visualiser.views.Menu$7.runInUIThread(Menu.java:367)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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)


Reproducible: Always

Steps to Reproduce:
1. Open Aspect Visualization Perspective
Comment 1 Andrew Eisenberg CLA 2010-09-07 23:06:47 EDT
It looks like the source location of a program element is unexpectedly null at this point.  I'm not sure why this is.  I added a null check and also will add an entry to the log when this happens.

Please update to the latest dev version and try again.  Keep an eye on your error log when you open the visualizer.  Let me know if you see any relevant entries, particularly ones that are prefixed with "Bug 324706".

You an get the latest dev snapshot from this update site:

http://download.eclipse.org/tools/ajdt/36/dev/update

This fix is only available for 3.6 right now, but if you are on 3.5 I can back port it.
Comment 2 Jesse Englert CLA 2010-09-08 16:57:53 EDT
I updated AJDT and cannot reproduce the problem. Thanks for the quick fix.
Comment 3 Andrew Eisenberg CLA 2010-09-20 14:22:34 EDT
Fixed now.  Please let me know if you see any relevant entries in your error log.