|
|
|
|
Re: Show Annotations does not work anymore [message #1636292 is a reply to message #1635458] |
Thu, 26 February 2015 05:50 |
|
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 25.02.2015 um 21:19 schrieb Matthias Sohn:<br>
<blockquote cite="mid:mclao9$vms$1@xxxxxxxxe.org" type="cite">set
a breakpoint in
org.eclipse.egit.ui.internal.blame.BlameOperation.execute()
<br>
and in org.eclipse.jgit.api.BlameCommand.call()
<br>
</blockquote>
<br>
Ok, I could track it down to a NullPointerException in
WorkbenchPage.showPart():<br>
<br>
private MPart showPart(int mode, MPart part) {<br>
switch (mode) {<br>
case VIEW_ACTIVATE:<br>
...<br>
case VIEW_VISIBLE:<br>
MPart activePart = partService.getActivePart();<br>
if (activePart == null) {<br>
...<br>
} else {<br>
part = ((PartServiceImpl)
partService).addPart(part);<br>
MPlaceholder activePlaceholder =
activePart.getCurSharedRef();<br>
MUIElement activePartParent = activePlaceholder ==
null ? activePart<br>
.getParent() :
activePlaceholder.getParent();<br>
partService.showPart(part, PartState.CREATE);<br>
if (<font color="#ff0000"><b>part.getCurSharedRef()</b></font>.getParent()
!= activePartParent) {<br>
partService.bringToTop(part);<br>
}<br>
}<br>
break;<br>
<br>
The part is the History view and its getCurSharedRef() method
returns null:<br>
<br>
java.lang.NullPointerException<br>
at
org.eclipse.ui.internal.WorkbenchPage.showPart(WorkbenchPage.java:1289)<br>
at
org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1260)<br>
at
org.eclipse.ui.internal.WorkbenchPage$11.run(WorkbenchPage.java:4100)<br>
at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)<br>
at
org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4096)<br>
at
org.eclipse.egit.ui.internal.blame.BlameOperation.openEditor(BlameOperation.java:290)<br>
at
org.eclipse.egit.ui.internal.blame.BlameOperation.access$0(BlameOperation.java:271)<br>
at
org.eclipse.egit.ui.internal.blame.BlameOperation$1.run(BlameOperation.java:266)<br>
at
org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)<br>
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)<br>
... 24 more<br>
<br>
The org.eclipse.ui.workbench plugin has the version
3.107.0.v20150127-1326. It's strange that the problem does not
happen in another IDE with the identical workbench version. The two
IDE differ in their EGit versions, though:<br>
<br>
EGit 3.7.0.201502040827 (Good IDE)<br>
EGit 3.7.0.201502031740-rc1 (Bad IDE)<br>
<br>
Cheers<br>
/Eike<br>
<br>
----<br>
<a class="moz-txt-link-freetext" href="http://www.esc-net.de">http://www.esc-net.de</a><br>
<a class="moz-txt-link-freetext" href="http://thegordian.blogspot.com">http://thegordian.blogspot.com</a><br>
<a class="moz-txt-link-freetext" href="http://twitter.com/eikestepper">http://twitter.com/eikestepper</a><br>
<br>
<br>
<br>
</body>
</html>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.02018 seconds