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

Bug 498368

Summary: NPE when opening compare editor
Product: [Technology] Subversive Reporter: Stuart Johnston <sgjohnston>
Component: CoreAssignee: Alexander Gurov <a.gurov>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 4.0.0   
Target Milestone: ---   
Hardware: All   
OS: Mac OS X   
Whiteboard:

Description Stuart Johnston CLA 2016-07-22 14:01:48 EDT
Neon with Subversive 4.0 - trying svn compare in a project with changes (eg from base) results in a null pointer exception:

eclipse.buildId=4.6.0.I20160606-1100
java.version=1.8.0_102
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
Framework arguments:  -product org.eclipse.epp.package.java.product -keyring /Users/sgj/.eclipse_keyring
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/sgj/.eclipse_keyring

org.eclipse.core.jobs
Error
Fri Jul 22 18:50:09 BST 2016
An internal error occurred during: "Initializing Compare Editor for Compare (trunk [Local - Base:2761 - Base:2761])".

java.lang.NullPointerException
	at org.eclipse.team.svn.core.operation.LoggedOperation.setConsoleStream(LoggedOperation.java:56)
	at org.eclipse.team.svn.ui.utility.UILoggedOperationFactory.getLogged(UILoggedOperationFactory.java:28)
	at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doTaskExternal(ProgressMonitorUtility.java:90)
	at org.eclipse.team.svn.core.utility.ProgressMonitorUtility.doTaskExternal(ProgressMonitorUtility.java:81)
	at org.eclipse.team.svn.ui.compare.ResourceCompareInput.prepareCompareInput(ResourceCompareInput.java:198)
	at org.eclipse.team.ui.synchronize.SaveableCompareEditorInput.prepareInput(SaveableCompareEditorInput.java:277)
	at org.eclipse.compare.CompareEditorInput.run(CompareEditorInput.java:484)
	at org.eclipse.compare.internal.CompareUIPlugin.prepareInput(CompareUIPlugin.java:602)
	at org.eclipse.compare.internal.CompareEditor$1.run(CompareEditor.java:349)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

It can be avoided if the compare editor is forced to open for a specific file, using local compare in Eclipse, then an SVN compare own the same file will work fine. But this does not work for any structure compare. This is happening on OS/X (as above), I've not had a chance to try on anything else yet.

Stuart
Comment 1 Alexander Gurov CLA 2016-08-07 09:02:50 EDT

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