Q7

NPE after resource renaming

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.14
  • Fix Version/s: 1.2.18
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Manual

Description

Quote from mail:

I had a resource opened in an editor (my guess is that it doesn't matter which editor). I renamed the resource while it was open using some internal refactoring method. The caption of the open editor window will change after the renaming. During this renaming of the editor window caption the following NPE - showing a status dialog! - occurs (it does not come up without AJ instrumentation):

java.lang.NullPointerException
                at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.refreshTitleBar(TabbedPropertySheetPage.java:828)
                at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.labelProviderChanged(TabbedPropertySheetPage.java:849)
                at org.eclipse.ui.internal.decorators.DecoratorManager$1.run(DecoratorManager.java:430)
                at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
                at org.eclipse.ui.internal.decorators.DecoratorManager.fireListener(DecoratorManager.java:428)
                at org.eclipse.ui.internal.decorators.DecorationScheduler$3.runInUIThread(DecorationScheduler.java:530)
                at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
                at org.eclipse.swt.widgets.RunnableLock.run_aroundBody0(RunnableLock.java:35)
                at org.eclipse.swt.widgets.RunnableLock$AjcClosure1.run(RunnableLock.java:1)
                at com.xored.tesla.swt.aspects.DisplayAspect.ajc$around$com_xored_tesla_swt_aspects_DisplayAspect$10$90b1ba39proceed(DisplayAspect.aj:1)
                at com.xored.tesla.swt.aspects.DisplayAspect.ajc$around$com_xored_tesla_swt_aspects_DisplayAspect$10$90b1ba39(DisplayAspect.aj:347)
                at org.eclipse.swt.widgets.RunnableLock.run_aroundBody2(RunnableLock.java:35)
                at org.eclipse.swt.widgets.RunnableLock$AjcClosure3.run(RunnableLock.java:1)
                at com.xored.sherlock.aspects.swt.DisplayAspect.ajc$around$com_xored_sherlock_aspects_swt_DisplayAspect$2$90b1ba39proceed(DisplayAspect.aj:1)
                at com.xored.sherlock.aspects.swt.DisplayAspect.ajc$around$com_xored_sherlock_aspects_swt_DisplayAspect$2$90b1ba39(DisplayAspect.aj:60)
                at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
                at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
                at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
                at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1045)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
                at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:940)
                at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
                at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:587)
                at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
                at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:542)
                at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
                at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
                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:353)
                at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
                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:629)
                at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
                at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
                at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Activity

Hide
komaz added a comment - 18/Jan/13 8:30 PM

attaching workspace log

Show
komaz added a comment - 18/Jan/13 8:30 PM attaching workspace log
Hide
komaz added a comment - 18/Jan/13 8:32 PM

Update from devteam – TabbedPropertySheetPage is used only in Properties view

Show
komaz added a comment - 18/Jan/13 8:32 PM Update from devteam – TabbedPropertySheetPage is used only in Properties view

People

  • Assignee:
    sergey
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    18/Jan/13 5:18 PM
    Updated:
    14/Mar/13 11:44 AM
    Resolved:
    14/Mar/13 11:44 AM