Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348886

Summary: NPE when trying to display blame annotations for a modified file
Product: [Technology] EGit Reporter: Tomasz Zarna <tomasz.zarna>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
The editor became useless after a while none

Description Tomasz Zarna CLA 2011-06-09 09:11:46 EDT
Trying to display blame annotations for modified /org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitCommitHandlerV1.java in org.eclispe.orion.server.

Nothing happens, except for exceptions in the Error Log:

-- Error Details --
Date: Thu Jun 09 15:07:48 CEST 2011
Message: Unhandled event loop exception
Severity: Error
Product: Eclipse SDK 3.7.0.v201106030909 (org.eclipse.sdk.ide)
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=I20110603-0909
java.fullversion=JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr7-20091214_49398 (JIT enabled, AOT enabled)
J9VM - 20091214_049398
JIT  - r9_20091123_13891
GC   - 20091111_AA
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Command-line arguments:  -os win32 -ws win32 -arch x86

Exception Stack Trace:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:4282)
	at org.eclipse.swt.SWT.error(SWT.java:4197)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	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:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.NullPointerException
	at org.eclipse.egit.ui.internal.blame.BlameRevision.getDate(BlameRevision.java:47)
	at org.eclipse.jface.internal.text.revisions.RevisionPainter$ColorTool.computeAge(RevisionPainter.java:240)
	at org.eclipse.jface.internal.text.revisions.RevisionPainter$ColorTool.setInfo(RevisionPainter.java:166)
	at org.eclipse.jface.internal.text.revisions.RevisionPainter.setRevisionInformation(RevisionPainter.java:652)
	at org.eclipse.jface.text.source.LineNumberChangeRulerColumn.setRevisionInformation(LineNumberChangeRulerColumn.java:251)
	at org.eclipse.ui.internal.texteditor.LineNumberColumn.showRevisionInformation(LineNumberColumn.java:755)
	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.showRevisionInformation(AbstractDecoratedTextEditor.java:598)
	at org.eclipse.egit.ui.internal.blame.BlameOperation$1.run(BlameOperation.java:111)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 23 more
Comment 1 Tomasz Zarna CLA 2011-06-09 09:16:28 EDT
Created attachment 197694 [details]
The editor became useless after a while
Comment 2 Kevin Sawicki CLA 2011-06-09 12:13:06 EDT
This should be fixed via bug348665

*** This bug has been marked as a duplicate of bug 348665 ***